Get all snapshots in your AWS environment using AWS lambda

Get all snapshots in your AWS environment using AWS lambda

Greetings! Managing snapshots is very critical and complex topic in any environment. You should keep a track of snapshots with their creation date. You should be aware when one snapshot should be deleted, as it would be consuming space. In this lambda script you can get consolidated report for all snapshots in your environment. I have excluded the snapshots which are copied from same or different zone. Those snapshots have volume id as vol-ffffffff. I think those should be managed separately but if you want to track those also you can simply remove…Read more …
Search for particular tag name for all instances using AWS lambda

Search for particular tag name for all instances using AWS lambda

Greetings! Tags are very helpful feature in AWS. You can store information related to your business or resource configuration using tags. It helps us to query for resources based on particular condition. This lambda function queries for name tag for all instances in particular region in a particular account and returns its value. You can find script here. Happy coding!  Read more …
Get public IP addresses of all EC2 instances in single AWS account

Get public IP addresses of all EC2 instances in single AWS account

Greetings! When you are working in big organization and server count is very high it is very tedious to manage networks. Public IP address management is very critical, you should be aware what machines are exposed to Internet. This python lambda scripts gets list of all public IP addresses availble in your account. You can find script here. Happy Coding!Read more …
Get all EC2 instances from all regions and store it in dynamodb

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!Read more …