Skip to content

Instantly share code, notes, and snippets.

@koheyamada
Last active April 11, 2016 05:00
Show Gist options
  • Save koheyamada/ca2fede2e4327c4f3f3b4854b0af986c to your computer and use it in GitHub Desktop.
Save koheyamada/ca2fede2e4327c4f3f3b4854b0af986c to your computer and use it in GitHub Desktop.
AWS CLIでAWS Account IDを取得する。 ref: http://qiita.com/kooohei/items/2a8a09e5f36bac614879
$ aws sts get-caller-identity
{
"Account": "123456789012",
"UserId": "AIDA*****************",
"Arn": "arn:aws:iam::123456789012:user/kohei"
}
$ sudo pip install --upgrade awscli --ignore-installed six
$ aws sts get-caller-identity
$ aws --version
aws-cli/1.10.18 Python/2.7.10 Darwin/15.4.0 botocore/1.4.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment