Skip to content

Commit

Permalink
Remove the hardcoded region
Browse files Browse the repository at this point in the history
  • Loading branch information
edw-defang committed Apr 5, 2024
1 parent 6a520ad commit bb87594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/aws/aws-sdk-go-v2/config"
)

var LoadConfig = sync.OnceValue[awssdk.Config](func() awssdk.Config {
cfg, err := config.LoadDefaultConfig(context.Background(), config.WithRegion("us-west-2"))
var LoadConfig = sync.OnceValue(func() awssdk.Config {
cfg, err := config.LoadDefaultConfig(context.Background())
if err != nil {
log.Fatalf("unable to load SDK config, %v", err)
}
Expand Down

0 comments on commit bb87594

Please sign in to comment.