Scan AWS Regions For Resources Fast!

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:

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a website or blog at WordPress.com

%d bloggers like this: