Skip to content

Commit

Permalink
add region to STS client (salesforce#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianxu88 authored Oct 7, 2023
1 parent f342c06 commit 88ec319
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func (c AwsCredentials) credentialsProvider() (config.LoadOptionsFunc, error) {
if c.AssumeRoleArn != "" {
awsConfig, err := config.LoadDefaultConfig(
context.TODO(),
credProvider, // use static credentials if provided
config.WithRegion(c.ClientRegion), // empty string will be ignored
credProvider, // use static credentials if provided
)
if err != nil {
return nil, err
Expand Down

0 comments on commit 88ec319

Please sign in to comment.