idiot one
idiot one

Reputation: 389

AWS CLI describe-instances does not return any instances

I have one t2.micro instance running in AWS EC2. I tried to list the instance with AWS CLI but the result seems to be empty. Any hint?

[root@centos7 ~]# aws ec2 describe-instances
{
    "Reservations": []
}

Upvotes: 1

Views: 1180

Answers (1)

Ankit Sanghvi
Ankit Sanghvi

Reputation: 527

You might have the instance in another region compared to the default region in your cli.

aws ec2 describe-instances --region YOUR_REGION_NAME

Upvotes: 6

Related Questions