Skip to content

Commit 2a96806

Browse files
committed
fix(common): aws servicetoken optional
also upgrades tf provider Signed-off-by: Mike Nguyen <[email protected]>
1 parent 2482631 commit 2a96806

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/infrastructure/terraform/conformance/secretstores/aws/secretsmanager/secretsmanager.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = "~> 4.0"
7+
version = "~> 6.5"
88
}
99
}
1010
}

common/aws/auth/auth_static.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func newAuthStatic(ctx context.Context, opts Options, configOpts []func(*config.
4949
}
5050

5151
switch {
52-
case static.AccessKey != "" && static.SecretKey != "" && static.SessionToken != "":
52+
case static.AccessKey != "" && static.SecretKey != "":
5353
static.ProviderType = StaticProviderTypeStatic
5454
static.CredentialProvider = credentials.NewStaticCredentialsProvider(opts.AccessKey, opts.SecretKey,
5555
opts.SessionToken)

secretstores/aws/secretmanager/secretmanager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ import (
1717
"context"
1818
"encoding/json"
1919
"fmt"
20+
"reflect"
21+
2022
awsCommon "github.com/dapr/components-contrib/common/aws"
2123
awsCommonAuth "github.com/dapr/components-contrib/common/aws/auth"
22-
"reflect"
2324

2425
"github.com/aws/aws-sdk-go-v2/service/secretsmanager"
2526

0 commit comments

Comments
 (0)