-
-
Save mikepietruszka/132d9f52e39790707bfe4a6e74294544 to your computer and use it in GitHub Desktop.
get AWS account ID from within an EC2 instance
This file contains 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
curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq .accountId | sed 's/"//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment