Get all EC2 instances from all regions and store it in dynamodb

Greetings!

In AWS we have multiple regions, if you want to check resources or services of particular region you need to switch to that region first.

This script will fetch EC2 instance name, ID and type from all regions.

The script has two parts which I have divided into two functions. One functions collects all the information and second adds that to dynamodb. you can skip second part and save it in csv in S3 bucket.

You can find script here.

Happy Coding!

Leave a Comment

Your email address will not be published. Required fields are marked *