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 in AWS by akhtar
• 14,590 points
134 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 by MD
• 32,730 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
• 57,530 points
1,119 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
• 57,530 points
3,470 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
• 57,530 points
789 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 in AWS by MD
• 32,730 points
162 views
0 votes
1 answer

not able to delete a security group for my Amazon VPC in AWS?

Hi@akhtar, When you try to delete that security ...READ MORE

answered Mar 18 in AWS by MD
• 32,730 points
157 views