Amazon Web Services, AWS, Centralized Computing, Cloud, Dynamodb, EC2, Infrastructure as a Code, Lambda, Python, Script

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

August 22, 2018


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!

You Might Also Like

No Comments

Leave a Reply