Difference between revisions of "Aws sts get-caller-identity"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
{ | { | ||
"UserId": "ZIDBZCTGOUKVXXFNQ5Q3F", | "UserId": "ZIDBZCTGOUKVXXFNQ5Q3F", | ||
− | "Account": "894058868389", | + | "[[Account]]": "894058868389", |
"Arn": "arn:aws:iam::894058868389:user/your_user" | "Arn": "arn:aws:iam::894058868389:user/your_user" | ||
} | } |
Revision as of 10:49, 19 October 2021
The aws sts get-caller-identity command outputs three pieces of information including the ARN.
aws sts get-caller-identity
aws sts get-caller-identity { "UserId": "ZIDBZCTGOUKVXXFNQ5Q3F", "Account": "894058868389", "Arn": "arn:aws:iam::894058868389:user/your_user" }
Related
See also
- AWS STS
(sts:)
,aws sts
[get-session-token
|get-caller-identity
|assume-role | assume-role-with-web-identity | assume-role-with-saml | get-access-key-info ]
- AWS CLI,
aws
[configure
|iam
|ec2
|ecs
|eks
|s3
|rds
|sts
|cloudwatch
|cloudformation
|cloudfront
|eventbridge
|lambda
],aws configure list
,.aws/credentials
,.aws/config
,~/.aws/cli/alias
,--output [ table | json | text | XXX ]
, Aws cli environmental variables:AWS_PROFILE
,AWS_DEFAULT_REGION, AWS_REGION
,AWS_CLI_AUTO_PROMPT
,AWS_SESSION_TOKEN
,aws list all
,auto-prompt
,--version
,whoamiaws, --filters, --help
Advertising: