1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
For temporary authentication, you must use the credentials issued using the "get-session-token" command.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/get-session-token.html
aws sts get-session-token \
--duration-seconds 3600
The response looks like this:
Use the access key, secret access key, and session token obtained in this response.
{
"Credentials": {
"AccessKeyId": "ASIA...",
"SecretAccessKey": "...",
"SessionToken": "...",
"Expiration": "2024-05-15T23:47:00Z"
}
}
Relevant content
- Accepted Answerasked 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago