Difference between revisions of "AWS SESSION TOKEN"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
== Related == | == Related == | ||
+ | * <code>[[aws configure set aws_session_token]]</code> | ||
* <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]]</code> script | * <code>[[aws-sts-get-session-token]]</code> script | ||
* <code>[[unset]]</code> | * <code>[[unset]]</code> | ||
* [[AWS cli environmental variables]]: <code>[[AWS_ACCESS_KEY_ID]]</code>, <code>[[AWS_SECRET_ACCESS_KEY]]</code>, <code>[[AWS_REGION]]</code>, <code>[[AWS_PROFILE]]</code> | * [[AWS cli environmental variables]]: <code>[[AWS_ACCESS_KEY_ID]]</code>, <code>[[AWS_SECRET_ACCESS_KEY]]</code>, <code>[[AWS_REGION]]</code>, <code>[[AWS_PROFILE]]</code> | ||
− | |||
* [[Configure MFA on AWS]] | * [[Configure MFA on AWS]] | ||
Revision as of 08:36, 26 May 2023
AWS_SESSION_TOKEN
An error occurred (ExpiredToken) when calling the ListVirtualMFADevices operation: The security token included in the request is expired
~/.aws/credentials aws_session_token=XXXX
Related
aws configure set aws_session_token
aws sts get-session-token --serial-number <mfa_device> --token-code <token>
aws-sts-get-session-token
scriptunset
- AWS cli environmental variables:
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
,AWS_REGION
,AWS_PROFILE
- Configure MFA on AWS
See also
- AWS CLI: environmental variables,
aws configure, ~/.aws/config
,~/.aws/credentials
,~/.aws/cli/alias, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
aws configure [ list-profiles | sso | sso-session | set ]
,~/.aws/config
,.aws/credentials
,mfa_serial
, AWS cli environmental variables:AWS_PROFILE
,AWS_REGION, AWS_DEFAULT_REGION, AWS_SESSION_TOKEN, AWS_ROLE_SESSION_NAME
,.aws/
, AWS functions,--profile, viawsconfig, viawscredentials
- AWS STS
(sts:)
,aws sts
[get-session-token
|get-caller-identity
|assume-role | assume-role-with-web-identity | assume-role-with-saml | get-access-key-info ]
Advertising: