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?
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.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With