We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77c61e0 + af699b5 commit 3cdac5cCopy full SHA for 3cdac5c
store/ssmstore.go
@@ -45,9 +45,14 @@ func NewSSMStore(numRetries int) *SSMStore {
45
if regionOverride, ok := os.LookupEnv("CHAMBER_AWS_REGION"); ok {
46
region = aws.String(regionOverride)
47
}
48
- ssmSession := session.Must(session.NewSession(&aws.Config{
49
- Region: region,
50
- }))
+ ssmSession := session.Must(session.NewSessionWithOptions(
+ session.Options{
+ Config: aws.Config{
51
+ Region: region,
52
+ },
53
+ SharedConfigState: session.SharedConfigEnable,
54
55
+ ))
56
57
// If region is still not set, attempt to determine it via ec2 metadata API
58
region = nil
0 commit comments