-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 v2 You must specify a region #3772
Comments
After manually configuring the region, it's working as expected $ aws configure --profile mytestiamuser $ aws ec2 describe-regions --profile mytestiamuser |
To be clear, the cli does not take values from the I think it would be reasonable to offer some way for the import command to set regions, either by having |
So you can always set the environment variable as part of the command, eg.: AWS_DEFAULT_REGION=eu-west-1 aws xxxxx |
Greetings! It looks like this issue hasn’t been active in longer than one year. We encourage you to check if this is still an issue in the latest release. Because it has been longer than one year since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment to prevent automatic closure, or if the issue is already closed, please feel free to reopen it. |
Steps to reproduce the issue
AWS CLI Import Command run sucessfully
$ aws configure import --csv file:///Users/XYZ/Downloads/credentials.csv
Successfully imported 1 profile(s)
Profile mytestiamuser listed sucessfully
$ aws configure list-profiles
default
mytestiamuser
But when I try to run any command, it's failing due to below error? This is supposed to pick default region?
$ aws ec2 describe-regions --profile mytestiamuser
You must specify a region. You can also configure your region by running "aws configure".
$ aws configure --profile mytestiamuser
AWS Access Key ID [****************XXXXX]:
AWS Secret Access Key [****************XXXX]:
Default region name [None]:
Default output format [None]:
$ cat ~/.aws/config
[default]
region = us-west-2
The text was updated successfully, but these errors were encountered: