IT notes

aws meta data

AWS meta-data Instance metadata is data about your instance that you can use to configure or manage the running instance. Instance metadata is divided into categories. For more information, see Instance Metadata Categories. To view all the categories: curl http://169.254.169.254/latest/meta-data/ To obtain the private IP address: curl http://169.254.169.254/latest/meta-data/local-ipv4 To obtain the public IP address: curl http://169.254.169.254/latest/meta-data/public-ipv4 To obtain the ssh public key: curl http://169.254.169.254/1.0/meta-data/public-keys/0/openssh-key To obtain the instance name: