title: Know its own instance id using aws-sdk ruby gem
body: <p>How does a running ec2 instance can know its own instance id using aws-sdk ruby gem.</p>
  
  <p>I have a running ec2 instance say 'X' and I want to know its instance id using aws-sdk ruby gem. The ruby code is getting executed on the same ec2 instance 'X'</p>