Editing Aws sts get-session-token
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | https:// | + | https://docs.aws.amazon.com/cli/latest/reference/sts/get-session-token.html |
− | |||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
* <code>[[aws sts]] get-session-token --serial-number <[[mfa_device]]> [[--token-code]] <token></code> | * <code>[[aws sts]] get-session-token --serial-number <[[mfa_device]]> [[--token-code]] <token></code> | ||
* <code>[[aws sts]] get-session-token --serial-number [[arn]]:aws:iam::62405745487395:mfa/yourname --token-code 123456</code> | * <code>[[aws sts]] get-session-token --serial-number [[arn]]:aws:iam::62405745487395:mfa/yourname --token-code 123456</code> | ||
− | |||
− | |||
== Synopsys == | == Synopsys == | ||
Line 25: | Line 19: | ||
[[--serial-number]] "[[arn]]:aws:iam::62405745487395:[[mfa]]/yourname" \ | [[--serial-number]] "[[arn]]:aws:iam::62405745487395:[[mfa]]/yourname" \ | ||
--token-code 123456 | --token-code 123456 | ||
− | + | ||
{ | { | ||
"Credentials": { | "Credentials": { | ||
− | " | + | "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", |
− | " | + | "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", |
− | " | + | "SessionToken": "AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT+FvwqnKwRcOIfrRh3c/LTo6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3zrkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtpZ3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE", |
"Expiration": "2020-05-19T18:06:10+00:00" | "Expiration": "2020-05-19T18:06:10+00:00" | ||
} | } | ||
Line 43: | Line 37: | ||
[[An error occurred (AccessDenied) when calling the GetSessionToken operation: MultiFactorAuthentication failed, must provide both MFA serial number and one time pass code.]] | [[An error occurred (AccessDenied) when calling the GetSessionToken operation: MultiFactorAuthentication failed, must provide both MFA serial number and one time pass code.]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
Line 55: | Line 43: | ||
* <code>[[AWS_SESSION_TOKEN]]</code> | * <code>[[AWS_SESSION_TOKEN]]</code> | ||
* <code>[[AWS_DEFAULT_REGION]]</code> | * <code>[[AWS_DEFAULT_REGION]]</code> | ||
− | * <code>[[aws-sts-get-session-token]]</code> | + | * <code>[[aws-sts-get-session-token]]</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == See also == | + | ==See also== |
* {{aws sts}} | * {{aws sts}} | ||
* {{aws iam}} | * {{aws iam}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Advertising: