Difference between revisions of "Aws sts get-caller-identity"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
  
 
* <code>[[aws sts]] get-caller-identity</code>
 
* <code>[[aws sts]] get-caller-identity</code>
 +
 +
 +
aws sts get-caller-identity
 +
{
 +
    "UserId": "ZIDBZCTGOUKVXXFNQ5Q3F",
 +
    "Account": "894058868389",
 +
    "Arn": "arn:aws:iam::894058868389:user/your_user"
 +
}
  
 
== Related ==
 
== Related ==

Revision as of 13:13, 18 October 2021

The aws sts get-caller-identity command outputs three pieces of information including the ARN.



aws sts get-caller-identity
{
    "UserId": "ZIDBZCTGOUKVXXFNQ5Q3F",
    "Account": "894058868389",
    "Arn": "arn:aws:iam::894058868389:user/your_user"
}

Related


See also

Advertising: