Skip to content

Commit

Permalink
Fix bug: AWS_SESSION_TOKEN never passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony DiMaggio authored and Tony DiMaggio committed Jan 9, 2025
1 parent 0cff762 commit 419433a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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") != "" {
Expand Down

0 comments on commit 419433a

Please sign in to comment.