In this blog I am going to demonstrate how to get the Instance Metadata information using curl.
Instance Metadata information is available at the 169.254.169.254 IP address.
If you are from networking background you will realize, this is Automatic Private IP or Self Assigned Private IP.
So, we use curl to get the information and as an example below.
Instance Metadata information is available at the 169.254.169.254 IP address.
If you are from networking background you will realize, this is Automatic Private IP or Self Assigned Private IP.
So, we use curl to get the information and as an example below.
$ curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | grep -e Type -e region -e Ip
"instanceType" : "m5.2xlarge",
"privateIp" : "10.114.32.79",
"region" : "us-east-1",
No comments:
Write comments