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

Define region so CLI uses correct endpoint for localzones #1284

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

cartermckinnon
Copy link
Member

Issue #, if available:

This is caused by a CLI bug: aws/aws-cli#7043

Description of changes:

When the CLI is used in a localzone; it constructs the wrong endpoint URL and the describe-instances call will always fail, such as:

> aws ec2 describe-instances --instance-ids i-0449a527fa4347213

Could not connect to the endpoint URL: "https://ec2.us-west-2-lax-1.amazonaws.com/"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Testing Done

The above failure is resolved by adding the --region flag. Tested on an instance in a local zone.

@cartermckinnon cartermckinnon merged commit a6f7186 into master Apr 26, 2023
@cartermckinnon cartermckinnon deleted the localzone-region-name branch April 26, 2023 00:32
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

Successfully merging this pull request may close these issues.

2 participants