Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (12.9k points)

I switch instances between different regions frequently and sometimes I forget to turn off my running instance from a different region. I couldn't find any way to see all the running instances on Amazon console.
Is there any way to display all the running instances regardless of region?

1 Answer

0 votes
by (18.2k points)

I have run into the same problem quite often and after some research, I found out that there is, in fact, a way to list all running resources using AWS GUI. 

Follow the below-mentioned steps to list all the running resources in all regions using AWS GUI.

1. Go to your AWS Console and click on Resource Groups option

2. Select tag editor in the drop-down box

3. Specify all regions in Regions field and select the resource type as instances

Click on Search Resources

In case you want to achieve the same using AWS CLI, use the following command:

for region in `aws ec2 describe-regions --region us-east-1 --output text | cut -f3`


     echo -e "\nListing Instances in region:'$region'..."

     aws ec2 describe-instances --region $region


Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories