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,260 points
7,500 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.

For a better understanding, check out the AWS Training and Certification.

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

Related Questions In AWS

0 votes
0 answers
0 votes
0 answers

How many buckets can you create in AWS by default?

Does AWS have a limit on the ...READ MORE

Oct 28 in AWS by Priyanka
• 2,940 points
34 views
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,020 points
13,049 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,460 points
2,599 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP