Skip to content

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

Open
@ibi456

Description

@ibi456

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") == "" {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions