Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS SDK not setup with region when Region Env Variables set #25

Open
ibi456 opened this issue Sep 14, 2021 · 0 comments
Open

AWS SDK not setup with region when Region Env Variables set #25

ibi456 opened this issue Sep 14, 2021 · 0 comments

Comments

@ibi456
Copy link

ibi456 commented Sep 14, 2021

The SDK is not constructed with the default region when environment variables are set for the region, i.e AWS_REGION and AWS_DEFAULT_REGION. Only by querying the EC2 metadata is it set correctly.

I believe the else block is missing to use the environment variables to source the AWS region for constructing the SDK.

if os.Getenv("AWS_REGION") == "" && os.Getenv("AWS_DEFAULT_REGION") == "" {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant