Skip to content

Commit

Permalink
Bypass config resolution for localstack (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHendrickson authored Dec 11, 2023
1 parent 8c0a761 commit 06e14fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/awsHelpers/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
// If no $LOCALSTACK_HOSTNAME variable exists in the current environment, the resolver falls
// back to the SDK's default endpoint resolution behavior.
func GetConfig(ctx context.Context) (aws.Config, error) {
return config.LoadDefaultConfig(ctx)
optionsFunc := func(service, region string, options ...interface{}) (aws.Endpoint, error) {
if lsHostname, isSet := os.LookupEnv("LOCALSTACK_HOSTNAME"); isSet {
lsPort := "4566"
Expand Down

0 comments on commit 06e14fb

Please sign in to comment.