AWS – Older Snapshots Report

In the dynamic world of cloud computing, optimizing resources and managing data efficiently is crucial. One aspect that often goes overlooked is the management of snapshots in Amazon Web Services (AWS). Snapshots play a pivotal role in data backup and recovery, but as time progresses, older snapshots can accumulate and impact both cost and performance. In this blog post, I will share a PowerShell script sample that can extract report for older snapshots in AWS.

You can modify this report as per your needs.

Prerequisites for this Solution:

Download the script from Git or PowerShell gallery from below links:

Git:

https://github.com/VikasSukhija/Downloads

AWSOlderSnapShots.ps1

PowerShell Gallery:


https://www.powershellgallery.com/packages/AWSOlderSnapShots

Install-Script -Name AWSOlderSnapShots

Update the below section of the script with your own parameters:


This script needs access and secret key of the account that can assume a role that has access to read the EC2 snapshot information across the whole organization.

Note: Please secure the access key and secret key as encrypted if you will schedule this script in production.

Script will fetch below details for each EC2 Snapshots, will generate csv file and send on email.


Here is the Email that email address mentioned in variable will receive.


Here is the CSV report that your will get:



We are doing report on 90 days older Snapshots, you can modify the solution accordingly as per your needs.

Also, modify the AccountID for authentication as per your organization at line 70, Line 106, Line 110, Line112, Line 116.


 

 

Thanks for reading and downloading…

Tech Wizard

 

https://techwizard.cloud

https://syscloudpro.com/

PowerShell Fast Track

Leave a comment