Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating EC2 AMI Image

I want to create an AMI of my instance but I'm frightened by the following prompt on AWS:

The instance you're using as a template for a new image has the following volumes:
/dev/sda1, vol-a9 (15 GiB), will delete on termination
Total size of EBS volumes: 15 GiB.
When you create an EBS image an EBS snapshot will also be created for each of the above volumes.

Now when it says that the EBS volume will delete on termination, does it mean termination of the script that creates the AMI or just when I terminate the Instance?

like image 213
Ben Avatar asked May 26 '11 21:05

Ben


People also ask

How do I create a custom AMI image?

Log in to the AWS Management Console, display the EC2 page for your region, then click Instances. Choose the instance from which you want to create a custom AMI. Click Actions and click Create Image. Type a name for Image Name that is easily identifiable to you and, optionally, input text for Image Description.

Can we create our own AMI in AWS?

You can create an AMI using the AWS Management Console or the command line. The following diagram summarizes the process for creating an AMI from a running EC2 instance. Start with an existing AMI, launch an instance, customize it, create a new AMI from it, and finally launch an instance of your new AMI.


1 Answers

There is a post on AWS developer forum that sheds light to this.

Delete on termination is a flag that can be turned off, which will remove the volume if the instance itself is terminated. Your current EBS volume will not be lost unless you terminate your current instance. Creating an image will only restart your current instance (You can disable that too, but not recommended to ensure consistency)

like image 186
Jay Sidri Avatar answered Sep 21 '22 00:09

Jay Sidri