Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 419433a

Browse files
Tony DiMaggioTony DiMaggio
Tony DiMaggio
authored and
Tony DiMaggio
committedJan 9, 2025·
Fix bug: AWS_SESSION_TOKEN never passed
1 parent 0cff762 commit 419433a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎common/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func GetAwsConfig() (*aws.Config, error) {
133133
}
134134
if os.Getenv("AWS_ACCESS_KEY_ID") != "" && os.Getenv("AWS_SECRET_ACCESS_KEY") != "" {
135135
config.Credentials = credentials.NewStaticCredentials(os.Getenv("AWS_ACCESS_KEY_ID"),
136-
os.Getenv("AWS_SECRET_ACCESS_KEY"), "")
136+
os.Getenv("AWS_SECRET_ACCESS_KEY"), os.Getenv("AWS_SESSION_TOKEN"))
137137
return config, nil
138138
}
139139
if os.Getenv("AWS_CRED_PATH") != "" && os.Getenv("AWS_CRED_PROFILE") != "" {

0 commit comments

Comments
 (0)
Please sign in to comment.