Skip to content

Instantly share code, notes, and snippets.

View Rugby-Ball's full-sized avatar

Ed Walsh Rugby-Ball

View GitHub Profile
@Rugby-Ball
Rugby-Ball / ec2-snapshots-full-inventory.ps1
Last active June 24, 2021 22:33 — forked from MatthewJDavis/Get-EC2InstanceLatestSnapshot.ps1
Modified from original to scan all AWS Regions, and allow wildcard to pull in all EC2's and associated snapshots for the EBS volumes
#ec2-snapshots-full-inventory.ps1
#This will pull an inventory of all snapshots for all EBS volumes attached to an EC2 Instance.
#Can take wildcard to pull in all EC2 instances in all regions, or an EC2 Tag:NAME value to look for only one EC2 across all regions.
#Scans all AWS Regions.
# original from: https://matthewdavis111.com/powershell/ec2-latest-snapshots-of-attached-volumes/
#Altered to fit needs.
#Altered by: Ed Walsh
#Originally Modified: 01/20/2021
#Edited: 06/24/2021
#