mirror of https://github.com/docker/compose.git
add shared config state to session
By adding this flag to the session, we force the AWS Go SDK to read the ~/.aws/config file. By default, the Go SDK doesn't read this file which is often not what we or customers expect. Many customers store their assume role based prfoiles in the .aws/config file rather than the .aws/credentials file. (This is what the AWS CLI does, by default - but that's because this parameter is enabled by default in the python SDK). Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
55531eb6b4
commit
0df99075cc
|
@ -8,7 +8,8 @@ import (
|
|||
|
||||
func NewBackend(profile string, region string) (*Backend, error) {
|
||||
sess, err := session.NewSessionWithOptions(session.Options{
|
||||
Profile: profile,
|
||||
Profile: profile,
|
||||
SharedConfigState: session.SharedConfigEnable,
|
||||
Config: aws.Config{
|
||||
Region: aws.String(region),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue