You must specify a region You can also configure your region by running aws configure
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:UsersNadeem 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?
When you installed AWS CLI for the first time in your local system, you have to configure AWS credentials using the below given command.
C:UsersNadeem 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 the region name. So try to set the region name and then try. It will help you to specify a region. you can also configure your region by running "aws configure".