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

AWS CLI configuration does not respect profile variable #2970

Closed
aahaselgrove opened this issue Nov 20, 2017 · 1 comment
Closed

AWS CLI configuration does not respect profile variable #2970

aahaselgrove opened this issue Nov 20, 2017 · 1 comment
Labels
bug This issue is a bug.

Comments

@aahaselgrove
Copy link

I tried to use the command aws ec2 describe-spot-price-history in the CLI and received the error 'You must specify a region. You can also configure your region by running "aws configure".' When I first installed the CLI, I configured my credentials and region.

Running 'aws configure', I try to re-enter my details (they are listed as blank), but they do not save. I assume this is because I am using a profile. I have the environment variable AWS_DEFAULT_PROFILE set to 'internal', and have attached my configuration files (with .txt extension added and sensitive data redacted).

config.txt
credentials.txt

@joguSD
Copy link
Contributor

joguSD commented Nov 21, 2017

Thanks for the report, there's a PR open to fix this issue here: #2972

As a workaround for now you'll need to run aws configure --profile name where name matches what's in AWS_DEFAULT_PROFILE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants