Last active
April 11, 2016 05:00
-
-
Save koheyamada/ca2fede2e4327c4f3f3b4854b0af986c to your computer and use it in GitHub Desktop.
AWS CLIでAWS Account IDを取得する。 ref: http://qiita.com/kooohei/items/2a8a09e5f36bac614879
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
$ aws sts get-caller-identity | |
{ | |
"Account": "123456789012", | |
"UserId": "AIDA*****************", | |
"Arn": "arn:aws:iam::123456789012:user/kohei" | |
} |
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
$ sudo pip install --upgrade awscli --ignore-installed six |
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
$ aws sts get-caller-identity |
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
$ 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