Created
June 27, 2018 03:49
-
-
Save tuffacton/3b9fc3d625ca7eeb6754469eddf4876d to your computer and use it in GitHub Desktop.
Quickly pull all AWS meta-data from within an EC2 instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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