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

Error setting default region #46

Open
AbrohamLincoln opened this issue Aug 17, 2021 · 1 comment
Open

Error setting default region #46

AbrohamLincoln opened this issue Aug 17, 2021 · 1 comment

Comments

@AbrohamLincoln
Copy link
Contributor

aws configure set default.region "$(curl -s http://169.254.169.254/latest/meta-data/placement/region)"

This doesn't work in certain environments. This is more portable, but introduces a dependency on jq"

 aws configure set default.region "$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)"
@aleiner
Copy link
Contributor

aleiner commented Apr 1, 2023

Can you please elaborate on which environments this may not work in?

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

2 participants