Skip to content

Commit 469bc72

Browse files
author
ailan.gl
committed
fix bug for RamRoleArn mode
1 parent 38f910d commit 469bc72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (cp *Profile) GetSessionCredentialByRoleArn() (*signers.SessionCredential,
238238
return &signers.SessionCredential{
239239
AccessKeyId: response.Credentials.AccessKeyId,
240240
AccessKeySecret: response.Credentials.AccessKeySecret,
241-
StsToken: response.Credentials.AccessKeySecret,
241+
StsToken: response.Credentials.SecurityToken,
242242
}, nil
243243
}
244244

0 commit comments

Comments
 (0)