Skip to content

Instantly share code, notes, and snippets.

View 1304SHUBHAM's full-sized avatar
💭
I may be slow to respond.

1304SHUBHAM

💭
I may be slow to respond.
View GitHub Profile
@1304SHUBHAM
1304SHUBHAM / lambdaAMIBackups.py
Created June 24, 2023 03:42 — forked from bkozora/lambdaAMIBackups.py
AWS Lambda AMI Backups
# Automated AMI Backups
#
# @author Bobby Kozora
#
# This script will search for all instances having a tag with the name "backup"
# and value "Backup" on it. As soon as we have the instances list, we loop
# through each instance
# and create an AMI of it. Also, it will look for a "Retention" tag key which
# will be used as a retention policy number in days. If there is no tag with
# that name, it will use a 7 days default value for each AMI.