use the correct configuration to test for external id (#19404)

This commit is contained in:
Benjamin Edwards
2024-05-31 10:47:49 -04:00
committed by GitHub
parent 72827bc3ad
commit d4a639414e
+1 -1
View File
@@ -50,7 +50,7 @@ func newS3store(config config.S3Config) (*s3store, error) {
// Assume role if configured
if config.StsAssumeRoleArn != "" {
creds := stscreds.NewCredentials(sess, config.StsAssumeRoleArn, func(provider *stscreds.AssumeRoleProvider) {
if config.StsAssumeRoleArn != "" {
if config.StsExternalID != "" {
provider.ExternalID = &config.StsExternalID
}
})