
Introduction
Quickly scanning all regions could help you identify stale resources that could potentially be removed, saving you money and risk.
The What
This tool will help you scan all AWS regions quickly via Powershell CLI.
Pre-requisites
How to install is laid out within the AWS documentation here: How to install
Once done, you will need the following modules:
Install-AWSToolsModule AWS.Tools.Ec2, AWS.Tools.RDS, AWS.Tools.ECS, AWS.Tools.EKS, AWS.Tools.ECR, AWS.Tools.Lambda
The script also works based on “profiles”. This is laid out in the documentation link above. Once you have these profiles, you can run this script.
If you would only like to scan specific regions, uncomment and edit lines
33–34:

Running
Once you are up and running, download the script from GitHub here…
Run the script, and enter the chosen profile:

Once entered, it will scan through each region and find common resources (counting when found). Example snippet:

Leave a Reply