Difference between revisions of "Aws sts assume-role"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/assume-role.html | * https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/assume-role.html | ||
* https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html | * https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html | ||
− | |||
− | |||
− | |||
− | + | ||
+ | * [[aws sts]] assume-role [[--role-arn]] your_role | ||
+ | * [[aws sts]] assume-role [[--role-arn]] your_role [[--role-session-name]] XXXX | ||
+ | * [[aws sts]] assume-role [[--role-arn]] your_role [[--role-session-name]] XXXX [[--serial-number]] yyyyy [[--token-code]] [[your-token]] | ||
Revision as of 11:05, 20 October 2023
- https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/assume-role.html
- https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html
- aws sts assume-role --role-arn your_role
- aws sts assume-role --role-arn your_role --role-session-name XXXX
- aws sts assume-role --role-arn your_role --role-session-name XXXX --serial-number yyyyy --token-code your-token
aws sts get-session-token --profile
--role-arn <value> --role-session-name <value> --duration-seconds <value> The maximum session duration setting can have a value from 1 hour to 12 hours --source-identity
Related
- AWS IAM role
aws iam enable-mfa-device
aws sts assume-role-with-saml
sts:AssumeRole
- Maximum session duration
- assumed-role/
Activities
See also
Advertising: