Within the dynamic world of cloud computing, optimizing sources and managing knowledge effectively is essential. One side that always goes missed is the administration of snapshots in Amazon Internet Providers (AWS). Snapshots play a pivotal position in knowledge backup and restoration, however as time progresses, older snapshots can accumulate and affect each value and efficiency. On this weblog put up, I’ll share a PowerShell script pattern that may extract report for older snapshots in AWS.
You may modify this report as per your wants.
Conditions for this Resolution:
Obtain the script from Git or PowerShell gallery from beneath hyperlinks:
Git:
https://github.com/VikasSukhija/Downloads
AWSOlderSnapShots.ps1
PowerShell Gallery:
https://www.powershellgallery.com/packages/AWSOlderSnapShots
Set up-Script -Identify AWSOlderSnapShots
Replace the beneath part of the script with your personal parameters:
This script wants entry and secret key of the account that may assume a task that has entry to learn the EC2 snapshot data throughout the entire group.
Be aware: Please safe the entry key and secret key as encrypted if you’ll schedule this script in manufacturing.
Script will fetch beneath particulars for every EC2 Snapshots, will generate csv file and ship on e mail.
Right here is the Electronic mail that e mail tackle talked about in variable will obtain.
Right here is the CSV report that your will get:
We’re doing report on 90 days older Snapshots, you’ll be able to modify the answer accordingly as per your wants.
Additionally, modify the AccountID for authentication as per your group at line 70, Line 106, Line 110, Line112, Line 116.
Thanks for studying and downloading…
Tech Wizard