You must specify a region You can also configure your region by running aws configure

0 votes

Hello Guys,

I have configured AWS CLI on my windows system. I am trying to see my instances from cli. But it gives me the below error.

C:\Users\Nadeem Akhter>aws ec2 describe-instances
You must specify a region. You can also configure your region by running "aws configure".

How to solve this error?

Jun 1, 2020 in AWS by akhtar
• 38,170 points
1,856 views

1 answer to this question.

0 votes

Hi@akhtar,

When you installed AWS CLI first time in your local system, you have to configure AWS credential using the below given command.

C:\Users\Nadeem Akhter>aws configure
AWS Access Key ID [****************4JTQ]:
AWS Secret Access Key [****************r1xF]:
Default region name [None]:
Default output format [None]:

Here you have to pass your credentials. But in your case you missed to set region name. So try to set region name and then try. It will work.

answered Jun 1, 2020 by MD
• 95,060 points

Related Questions In AWS

0 votes
1 answer

Do you get charged for a security group in AWS EC2?

There is no charge applicable to Security ...READ MORE

answered Jul 18, 2018 in AWS by Priyaj
• 58,100 points
2,881 views
0 votes
1 answer

How can I call Amazon's AWS kms decrypt function without using a binary file?

Not sure if you've already found this, ...READ MORE

answered Aug 30, 2018 in AWS by Priyaj
• 58,100 points
5,178 views
0 votes
1 answer

How can I disable a user's password in AWS using boto3

delete_login_profile is the one you should use if ...READ MORE

answered Sep 27, 2018 in AWS by Priyaj
• 58,100 points
1,116 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Configure multiple public subnets in a single AWS VPC.

Hi@akhtar, Yes, you can configure multiple public subnets ...READ MORE

answered Mar 18, 2020 in AWS by MD
• 95,060 points
517 views