Open tmlapp opened 2 years ago
Hi @tmlapp thanks for reaching out. This same issue was brought up internally through support so there is some ongoing discussion there. Per this blog post:
The Local Zone can be accessed programmatically as
us-west-2-lax-1a
. All API, CLI, and Console access takes place through theus-west-2
API endpoint and the US West (Oregon) Console.
This is also referenced in the Local Zones FAQ:
AWS Local Zones are also connected to the parent region via Amazon’s redundant and very high bandwidth private network
You can consider using the AWS_DEFAULT_REGION
environment variable to set the parent region as documented here or AWS_REGION
for cross-SDK environment support.
Hi @tmlapp,
Thanks again for reporting this. When the IMDS region fetcher was first implemented, there was only metadata from IMDS for availability-zone
. Now that there is a specific value for region, we should probably be using that. This will take some careful testing, but we are planning to fix it. As for now the best workaround is as @tim-finnigan noted above.
Thanks @kdaily and @tim-finnigan the REGION
env var does work around for the cli. I'm still having problems with a golang app using the golang-aws-sdk. It doesn't seem to accept the AWS_DEFAULT_REGION
env
AWS_DEFAULT_REGION
is AWS CLI only, unfortunately. It was added before other SDKs added support for environment variable configuration of the region. All other SDKs (and the CLI v2) support AWS_REGION
. You can read a summary of support here:
https://docs.aws.amazon.com/sdkref/latest/guide/feature-region.html
We're running into this issue in the EKS-optimized AMI. Is a fix planned?
This continues to be an issue, and looks like it'd be easy fix. PTAL.
Describe the bug
The aws-cli builds/returns the wrong endpoint when running on a host in a Local Zone. ex.: https://sts.us-west-2-den-1.amazonaws.com/
Expected Behavior
The aws-cli should correctly build endpoints to the Local Zones parent region ex.: https://sts.us-west-2.amazonaws.com/
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CLI version used
2.7.7
Environment details (OS name and version, etc.)
Amazon Linux 2