What's the functionality of AWS_SESSION_TOKEN returned from STS API?
up vote
0
down vote
favorite
aws sts assume-role
returns three fields as the issued Temporary Security Credentials.
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
The first two are with the same format of a user's Access Key, but the 3rd field, AWS_SESSION_TOKEN, is special to the temporary credential.
I have two questions:
- If AWS_SESSION_TOKEN is to represent/encode the temporary validity, why we still needs the first two fields (because after the expiration, we will need to get another AWS_SESSION_TOKEN anyway)?
- If my client call the STS API twice, between two responses returned from
aws sts assume-role
, will/could AWS_ACCESS_KEY_ID be same?
amazon-web-services amazon-iam sts-securitytokenservice aws-sts
add a comment |
up vote
0
down vote
favorite
aws sts assume-role
returns three fields as the issued Temporary Security Credentials.
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
The first two are with the same format of a user's Access Key, but the 3rd field, AWS_SESSION_TOKEN, is special to the temporary credential.
I have two questions:
- If AWS_SESSION_TOKEN is to represent/encode the temporary validity, why we still needs the first two fields (because after the expiration, we will need to get another AWS_SESSION_TOKEN anyway)?
- If my client call the STS API twice, between two responses returned from
aws sts assume-role
, will/could AWS_ACCESS_KEY_ID be same?
amazon-web-services amazon-iam sts-securitytokenservice aws-sts
1
"The first two are same as a regular user's Access Key." That should not be true.
– Michael - sqlbot
6 hours ago
@Michael-sqlbot, updated the wording, and hopefully this clarifies your confusion
– chen
19 mins ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
aws sts assume-role
returns three fields as the issued Temporary Security Credentials.
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
The first two are with the same format of a user's Access Key, but the 3rd field, AWS_SESSION_TOKEN, is special to the temporary credential.
I have two questions:
- If AWS_SESSION_TOKEN is to represent/encode the temporary validity, why we still needs the first two fields (because after the expiration, we will need to get another AWS_SESSION_TOKEN anyway)?
- If my client call the STS API twice, between two responses returned from
aws sts assume-role
, will/could AWS_ACCESS_KEY_ID be same?
amazon-web-services amazon-iam sts-securitytokenservice aws-sts
aws sts assume-role
returns three fields as the issued Temporary Security Credentials.
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
The first two are with the same format of a user's Access Key, but the 3rd field, AWS_SESSION_TOKEN, is special to the temporary credential.
I have two questions:
- If AWS_SESSION_TOKEN is to represent/encode the temporary validity, why we still needs the first two fields (because after the expiration, we will need to get another AWS_SESSION_TOKEN anyway)?
- If my client call the STS API twice, between two responses returned from
aws sts assume-role
, will/could AWS_ACCESS_KEY_ID be same?
amazon-web-services amazon-iam sts-securitytokenservice aws-sts
amazon-web-services amazon-iam sts-securitytokenservice aws-sts
edited 20 mins ago
asked 9 hours ago
chen
1,40031940
1,40031940
1
"The first two are same as a regular user's Access Key." That should not be true.
– Michael - sqlbot
6 hours ago
@Michael-sqlbot, updated the wording, and hopefully this clarifies your confusion
– chen
19 mins ago
add a comment |
1
"The first two are same as a regular user's Access Key." That should not be true.
– Michael - sqlbot
6 hours ago
@Michael-sqlbot, updated the wording, and hopefully this clarifies your confusion
– chen
19 mins ago
1
1
"The first two are same as a regular user's Access Key." That should not be true.
– Michael - sqlbot
6 hours ago
"The first two are same as a regular user's Access Key." That should not be true.
– Michael - sqlbot
6 hours ago
@Michael-sqlbot, updated the wording, and hopefully this clarifies your confusion
– chen
19 mins ago
@Michael-sqlbot, updated the wording, and hopefully this clarifies your confusion
– chen
19 mins ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53346229%2fwhats-the-functionality-of-aws-session-token-returned-from-sts-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
"The first two are same as a regular user's Access Key." That should not be true.
– Michael - sqlbot
6 hours ago
@Michael-sqlbot, updated the wording, and hopefully this clarifies your confusion
– chen
19 mins ago