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,230 points
7,202 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,440 points

Related Questions In AWS

0 votes
0 answers
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,090 points
12,330 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,090 points
9,196 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,440 points
2,192 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