Skip to content

Instantly share code, notes, and snippets.

@dnorton
Last active March 15, 2019 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnorton/edb83445183bf4d88f46664ae3f88cf3 to your computer and use it in GitHub Desktop.
Save dnorton/edb83445183bf4d88f46664ae3f88cf3 to your computer and use it in GitHub Desktop.
Alias command to show my AWS account id
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