Panic in elb.CreateLoadBalancer when AWS_REGION is not set #4367
Labels
bug
This issue is a bug.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p3
This is a minor priority issue
Describe the bug
Stack trace is received when using running
elb.CreateLoadBalancer
and theAWS_REGION
env var is not set. This is despite the region being set in~/.aws/credentials
, and AWS_PROFILE being set to the relevant profile's name. WhenAWS_REGION
env var is set, all is good.Expected Behavior
Provide an actual error message instead of a panic.
Current Behavior
Reproduction Steps
$ env | grep AWS AWS_PROFILE=REACTED_ROLE_NAME
unset AWS_REGION
Possible Solution
Bug does not occur if I do the following:
export AWS_REGION = us-east-1
Additional Information/Context
SDK version used
v1.40.56
Environment details (Version of Go (
go version
)? OS name and version, etc.)go1.17.8 darwin/amd64, macOS 12.3.1
The text was updated successfully, but these errors were encountered: