Tuesday, April 23, 2024
HomeSoftware EngineeringMethods to get Meta-Information info from an AWS EC2 Occasion

Methods to get Meta-Information info from an AWS EC2 Occasion


If you could question meta-data info out of your working EC2 occasion, you possibly can curl the next location:

curl http://169.254.169.254/newest/meta-data

This may present an inventory of all info that may be retrieved.

Say you wish to get the native IPv4 tackle, this may be accomplished as follows:

curl http://169.254.169.254/newest/meta-data/local-ipv4

It’s also possible to get JSON blocks of knowledge again, akin to querying the IAM Information:

curl http://169.254.169.254/newest/meta-data/iam/data
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments