In this tutorial, I walked you through the process of accessing metadata and dynamic data of an EC2 instance using the terminal.
Starting with creating a new EC2 instance, I demonstrated step-by-step how to connect to the instance and retrieve vital information such as the AMI ID, host name, and other metadata.
Links 👋
------------------------------------------------------------------------------
‣ 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" "http://169.254.169.254/latest/meta-data
------------------------------------------------------------------------------
Connect With Me 👋
------------------------------------------------------------------------------
‣ Website: https://ibilalkayy.com
‣ All Links in One Place: https://linktr.ee/ibilalkayy
------------------------------------------------------------------------------
#amazon #cloud #aws