From f6e3e59dc2b2ca65ab73fbff3efbcd6127fb6568 Mon Sep 17 00:00:00 2001 From: Roomba Date: Mon, 18 Nov 2024 10:52:07 +0100 Subject: [PATCH] region override in combination with profile works (#5) --- CHANGELOG.md | 5 +++++ internal/provider/provider.go | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5833978..6e8008e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## Unreleased +## 0.1.5 + +FIXES: +* region override in combination with profile works + ## 0.1.4 FIXES: diff --git a/internal/provider/provider.go b/internal/provider/provider.go index c38800d..82d9480 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -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{