Last active
March 15, 2019 14:54
-
-
Save dnorton/edb83445183bf4d88f46664ae3f88cf3 to your computer and use it in GitHub Desktop.
Alias command to show my AWS account id
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
alias myaccount="curl -s http://169.254.169.254/latest/dynamic/instance-identity/document|python -c 'from __future__ import print_function;import json,sys; print(json.load(sys.stdin)[\"accountId\"])'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment