Skip to content

Commit

Permalink
region override in combination with profile works (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
rumenvasilev authored Nov 18, 2024
1 parent 0e6b248 commit f6e3e59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Unreleased

## 0.1.5

FIXES:
* region override in combination with profile works

## 0.1.4

FIXES:
Expand Down
10 changes: 5 additions & 5 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,16 +469,16 @@ func (p *FastSSMProvider) Configure(ctx context.Context, req provider.ConfigureR
options = append(options, config.WithRetryMode(mode), config.WithRetryMaxAttempts(25))
}

// Region
if !data.Region.IsNull() {
options = append(options, config.WithDefaultRegion(data.Region.ValueString()))
}

// AWS Profile
if !data.Profile.IsNull() {
options = append(options, config.WithSharedConfigProfile(data.Profile.ValueString()))
}

// Region
if !data.Region.IsNull() {
options = append(options, config.WithDefaultRegion(data.Region.ValueString()))
}

// Static credentials
if !data.AccessKey.IsNull() && !data.SecretKey.IsNull() {
creds := staticCredentials{
Expand Down

0 comments on commit f6e3e59

Please sign in to comment.