Skip to content

Commit

Permalink
Removed unnecessary AWS_DEFAULT_REGION handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoronin committed Nov 30, 2023
1 parent 224bcd7 commit 5c96ecb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ func ec2init(opts Opts) {

if opts.region != "" {
config.Region = aws.String(opts.region)
} else if region := os.Getenv("AWS_DEFAULT_REGION"); region != "" {
config.Region = aws.String(region)
}

sess := session.Must(session.NewSessionWithOptions(session.Options{
Expand Down

0 comments on commit 5c96ecb

Please sign in to comment.