Retrieving InstanceId from within EC2 Instance


/ Published in: Other
Save to your folder(s)

This url will return the current instance id from within an ec2 instance


Copy this code and paste it in your HTML
  1. http://169.254.169.254/latest/meta-data/instance-id

URL: http://aws.amazon.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.