AWS - Taking backup of an EC2 instance

 

In this post, we will see how to take a backup of a running EC2 instance as an AMI and how to clean up the AMI.

I have an instance configured with root volume + data volume (1GB).


Let's start taking backups by "Create Image".


During AMI creation, EC2 creates snapshots for each volume.



Now, we have AMI created. When I try to create an instance from the AMI, it automatically configures storage with 2 volumes and you cannot edit them.



Now, Let's delete the AMI by "Deregister AMI". 


NOTE: This will not impact running EC2s. But, no new EC2 can be created. 



Comments

Popular posts from this blog

SRE/DevOps Syllabus

AWS Code Commit - CI/CD Series Part 1

Docker - Preventing IP overlapping