Difference between revisions of "Aws sts"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
* <code>[[aws sts get-session-token]]</code> | * <code>[[aws sts get-session-token]]</code> | ||
+ | |||
+ | # $1 = AWS_PROFILE_INIT | ||
+ | # $2 = AWS_PROFILE_MFA_ARN | ||
+ | # $3 = AWS_ROLE_ARN | ||
+ | # $4 = SESSION_NAME | ||
[[aws sts get-session-token]] [[--profile]] [[your_profile]] [[--serial-number]] [[your-serial-number]] --token-code your_mfa_code | [[aws sts get-session-token]] [[--profile]] [[your_profile]] [[--serial-number]] [[your-serial-number]] --token-code your_mfa_code |
Revision as of 08:21, 26 May 2023
https://docs.aws.amazon.com/cli/latest/reference/sts/
aws sts
aws sts assume-role
aws sts assume-role-with-saml
aws sts assume-role-with-web-identity
aws sts decode-authorization-message
aws sts get-access-key-info
aws sts get-caller-identity
aws sts get-federation-token
aws sts get-session-token
# $1 = AWS_PROFILE_INIT # $2 = AWS_PROFILE_MFA_ARN # $3 = AWS_ROLE_ARN # $4 = SESSION_NAME
aws sts get-session-token --profile your_profile --serial-number your-serial-number --token-code your_mfa_code aws sts assume-role --role-arn your_role --role-session-name XXXX --serial-number your-serial-number
Related terms
See also
Advertising: