Skip to content

Commit

Permalink
Add region
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
  • Loading branch information
gabriel-samfira committed Jun 18, 2024
1 parent 223e1c9 commit 61214db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (c Config) GetAWSConfig(ctx context.Context) (aws.Config, error) {
config.WithRegion(c.Region),
)
case AWSCredentialTypeRole:
cfg, err = config.LoadDefaultConfig(ctx)
cfg, err = config.LoadDefaultConfig(ctx, config.WithRegion(c.Region))
default:
return aws.Config{}, fmt.Errorf("unknown credential type: %s", c.Credentials.CredentialType)
}
Expand Down

0 comments on commit 61214db

Please sign in to comment.