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

Add a default region for ec2 describe-regions #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

acron0
Copy link

@acron0 acron0 commented Mar 7, 2022

In our case, we do not use the default AWS profile (so as to avoid using the wrong one). Even when specifying a profile with a region set in the config, the ec2 describe-regions command stumbles, with the error: You must specify a region. You can also configure your region by running "aws configure". In this case, any region can be used for this command, and it correctly returns all the regions regardless of which region is specified. This change hard-codes a default.

In our case, we do not use the `default` AWS profile (so as to avoid using the wrong one). *Even when specifying a profile with a region set in the config*, the `ec2 describe-regions` command stumbles, with the error: `You must specify a region. You can also configure your region by running "aws configure"`. In this case, _any region_ can be used for this command, and it _correctly_ returns all the regions regardless of which region is specified. This change hard-codes a default.
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.

1 participant