How to get the instance id from within an ec2 instanAce?

0 votes
How can I find the instance id of an ec2 instance from within the ec2 instance?
Mar 12 in AWS by Shalil
21 views

1 answer to this question.

0 votes

On Amazon Linux AMIs you can do:

$ ec2-metadata -i
instance-id: i-1234567890abcdef0

answered Mar 12 by trisha

Related Questions In AWS

0 votes
1 answer

How can I find out the instance id of an ec2 instance from within the ec2 instance?

On Amazon Linux AMIs you can do: $ ...READ MORE

answered Sep 10, 2018 in AWS by Archana
• 4,090 points
31 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to safely upgrade an Amazon EC2 instance from t1.micro to large?

Using AWS Management Console: Right-Click on the instance Instance ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 56,540 points
39 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Find region from within an EC2 instance

There is one more way of achieving ...READ MORE

answered Mar 12 in AWS by trisha
33 views