Skip to content

Script to create AMI and delete the AMI after X retention days along with the snapshot

Notifications You must be signed in to change notification settings

teewhey/aws-create-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

create_image.sh

Prerequisite

  • Install python python-dev python-pip
apt-get install python python-dev python-pip
  • Install AWSCLI
pip install awscli
  • Configure your AWS access
aws configure --profile <aws_profile_name>
  • Clone this repo to anywhere to your liking
  • Run the command
bash create_image.sh <some_fixed_name> <aws_profile_name>

Note

  • The fixed name should be the same for every run, otherwise this script will not delete past snapshots.

About

Script to create AMI and delete the AMI after X retention days along with the snapshot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages