Skip to content

Commit

Permalink
Fix for sts:AssumeRoleWithWebIdentity, #16048
Browse files Browse the repository at this point in the history
  • Loading branch information
harjsing7 authored and ddowker committed Nov 7, 2023
1 parent e72ad03 commit 2c8515c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions broker/fragment/store_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func (s *s3Backend) s3Client(ep *url.URL) (cfg S3StoreConfig, client *s3.S3, err
}

awsSession, err := session.NewSessionWithOptions(session.Options{
Config: *awsConfig,
Profile: cfg.Profile,
})
if err != nil {
Expand Down Expand Up @@ -250,7 +249,7 @@ func (s *s3Backend) s3Client(ep *url.URL) (cfg S3StoreConfig, client *s3.S3, err
"providerName": creds.ProviderName,
}).Info("constructed new aws.Session")

client = s3.New(awsSession)
client = s3.New(awsSession, awsConfig)
s.clients[key] = client

return
Expand Down

0 comments on commit 2c8515c

Please sign in to comment.