Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 37ac6e8

Browse files
committed
Force-enable shared config support
1 parent 4e428c8 commit 37ac6e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

img2lambda/clients/clients.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var userAgentHandler = request.NamedHandler{
1818
func NewLambdaClient(region string, profile string) *lambda.Lambda {
1919
sess := session.Must(session.NewSessionWithOptions(session.Options{
2020
Profile: profile,
21+
SharedConfigState: session.SharedConfigEnable,
2122
}))
2223
sess.Handlers.Build.PushBackNamed(userAgentHandler)
2324

0 commit comments

Comments
 (0)