Skip to content

Commit

Permalink
Fix hardcoded default region
Browse files Browse the repository at this point in the history
  • Loading branch information
daaru00 committed Mar 15, 2022
1 parent 65fe4b9 commit 9eb273e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/aws/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ func CreateAWSSession(c *cli.Context, config Config) *session.Session {
awsConfig.Region = aws.String(c.String("region"))
} else if len(region) == 0 && len(config.Region) != 0 {
awsConfig.Region = aws.String(config.Region)
} else {
awsConfig.Region = aws.String("eu-west-1")
c.Set("region", *awsConfig.Region)
}
c.Set("region", *awsConfig.Region)

// Check for debug mode
debugMode := os.Getenv("BB_AWS_CONNECT_AWS_DEBUG")
Expand Down

0 comments on commit 9eb273e

Please sign in to comment.