How to get ami id from within an ec2 instance?

You can use AWS EC2 metadata service to get ami id from within an ec2 instance. The link to EC2 metadata service is http://169.254.169.254/latest/meta-data/

Leave a Reply