Difference between revisions of "Aws sts"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | https:// | + | https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/index.html |
== Commands == | == Commands == | ||
Line 19: | Line 19: | ||
# $4 = SESSION_NAME | # $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 |
[[aws sts assume-role]] [[--role-arn]] your_role [[--role-session-name]] XXXX [[--serial-number]] [[your-serial-number]] [[--token-code]] | [[aws sts assume-role]] [[--role-arn]] your_role [[--role-session-name]] XXXX [[--serial-number]] [[your-serial-number]] [[--token-code]] | ||
Line 27: | Line 27: | ||
* <code>[[sts:AssumeRole]]</code> | * <code>[[sts:AssumeRole]]</code> | ||
* [[AWS Security Token Service (STS)]] | * [[AWS Security Token Service (STS)]] | ||
+ | * <code>[[aws iam create-access-key]]</code> | ||
+ | * [[AWS Authentication]] | ||
== See also == | == See also == |
Latest revision as of 06:14, 6 June 2024
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/index.html
Commands[edit]
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 --token-code
Related terms[edit]
.aws/credentials
aws iam
sts:AssumeRole
- AWS Security Token Service (STS)
aws iam create-access-key
- AWS Authentication
See also[edit]
Advertising: