Articles → AWS → Instance Metadata In AWS

Instance Metadata In AWS






Purpose





How To Get The Metadata Information?






http://169.254.169.254/latest/meta-data




Picture showing the different categories of information for the EC2 instance using instance metadata
Click to Enlarge



http://169.254.169.254/latest/meta-data/hostname


Picture showing the hostname from instance metadata
Click to Enlarge


How To Get Instance Metadata In Linux




TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` \
&& curl -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/



Is Instance Metadata Encrypted?





Posted By  -  Karan Gupta
 
Posted On  -  Thursday, January 13, 2022
 
Updated On  -  Thursday, December 28, 2023

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250