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.
1 parent b851e2c commit 79cdc4fCopy full SHA for 79cdc4f
cmd/aws-sigv4-proxy/main.go
@@ -67,14 +67,19 @@ func main() {
67
log.SetLevel(log.DebugLevel)
68
}
69
70
+ sessionOptions := session.Options{
71
+ SharedConfigState: session.SharedConfigEnable,
72
+ }
73
+
74
sessionConfig := aws.Config{}
75
if v := os.Getenv("AWS_STS_REGIONAL_ENDPOINTS"); len(v) == 0 {
76
sessionConfig.STSRegionalEndpoint = endpoints.RegionalSTSEndpoint
77
78
79
sessionConfig.CredentialsChainVerboseErrors = aws.Bool(shouldLogSigning())
80
- session, err := session.NewSession(&sessionConfig)
81
+ sessionOptions.Config.MergeIn(&sessionConfig)
82
+ session, err := session.NewSessionWithOptions(sessionOptions)
83
if err != nil {
84
log.Fatal(err)
85
0 commit comments