Skip to content

Commit

Permalink
Fix bug: AWS_SESSION_TOKEN never passed (#173)
Browse files Browse the repository at this point in the history
* Fix bug: AWS_SESSION_TOKEN never passed

* Bump version files

---------

Co-authored-by: Tony DiMaggio <[email protected]>
  • Loading branch information
antoninodimaggio and Tony DiMaggio authored Jan 15, 2025
1 parent 0cff762 commit 62b5f63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aws-kinesis-http-connector/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.15
v0.16
2 changes: 1 addition & 1 deletion aws-sqs-http-connector/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.16
v0.17
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 62b5f63

Please sign in to comment.