Skip to content

Instantly share code, notes, and snippets.

@tuffacton
Created June 27, 2018 03:49
Show Gist options
  • Select an option

  • Save tuffacton/3b9fc3d625ca7eeb6754469eddf4876d to your computer and use it in GitHub Desktop.

Select an option

Save tuffacton/3b9fc3d625ca7eeb6754469eddf4876d to your computer and use it in GitHub Desktop.
Quickly pull all AWS meta-data from within an EC2 instance
#!/bin/bash
for i in $(curl http://169.254.169.254/latest/meta-data/)
do
echo $i: && curl http://169.254.169.254/latest/meta-data/$i
echo ""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment