diff --git a/common/util.go b/common/util.go index cc4fc0e..e2d3e34 100644 --- a/common/util.go +++ b/common/util.go @@ -133,7 +133,7 @@ func GetAwsConfig() (*aws.Config, error) { } if os.Getenv("AWS_ACCESS_KEY_ID") != "" && os.Getenv("AWS_SECRET_ACCESS_KEY") != "" { config.Credentials = credentials.NewStaticCredentials(os.Getenv("AWS_ACCESS_KEY_ID"), - os.Getenv("AWS_SECRET_ACCESS_KEY"), "") + os.Getenv("AWS_SECRET_ACCESS_KEY"), os.Getenv("AWS_SESSION_TOKEN")) return config, nil } if os.Getenv("AWS_CRED_PATH") != "" && os.Getenv("AWS_CRED_PROFILE") != "" {