Amazon EC2: Instance ID

357100 pts.
Tags:
Amazon EC2
Cloud Computing
Does anyone know how to find the instance ID within my Amazon EC2 machine? Thanks!

Answer Wiki

Thanks. We'll let you know when a new response is added.
Hi,

An instance ID is a form of metadata used to configure or manage the running instance. With this data, users can track and maintain records of things like logins and lengths of sessions. Dynamic and user data are also helpful for these processes.

Metadata about each session is stored at a constant IP address. Users can access the latest metadata by having the program use the cURL tool at the following address:

$curl http://169.254.169.254/latest/meta-data/instance-id

This will allow the user to see the instance ID. Other forms of metadata such as instance type and a list of public keys are available with other addresses, or without specifying the type at the end of the URL, and allowing the full list of metadata to come up.

Thanks &Regards
Clark Kent

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following