Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>An EC2 instance can be terminated at any time and one must account for this indeed, as already mentioned in <a href="https://stackoverflow.com/a/4973683/45773">David's answer</a> (+1). You can arrange for a failed instance's <a href="http://aws.amazon.com/ebs/" rel="nofollow noreferrer">Elastic Block Store (EBS)</a> to remain available regardless though, see e.g. the respective FAQ <a href="http://aws.amazon.com/ec2/faqs/#What_happens_to_my_data_when_a_system_terminates" rel="nofollow noreferrer">What happens to my data when a system terminates?</a>:</p> <blockquote> <p>The data stored on a local instance store will persist only as long as that instance is alive. However, data that is stored on an Amazon EBS volume will persist independently of the life of the instance. If you are using an Amazon EBS volume as a root partition, then <strong>you have set the Delete On Terminate flag to "N" for your Amazon EBS volume to persist outside the life of the instance</strong>. <em>[emphasis mine]</em></p> </blockquote> <p>This is explained in more detail in section <em>2. Delete on Termination</em> within Eric Hammond's recommended article <a href="http://alestic.com/2010/01/ec2-instance-locking" rel="nofollow noreferrer">Three Ways to Protect EC2 Instances from Accidental Termination and Loss of Data</a>:</p> <blockquote> <p>Though EBS volumes created and attached to an instance at instantiation are preserved through a “stop”/”start” cycle, by default they are destroyed and lost when an EC2 instance is terminated. This behavior can be changed with a delete-on-termination boolean value buried in the documentation for the --block-device-mapping option of ec2-run-instances.</p> </blockquote> <p>He is referring to the <a href="http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/ApiReference-cmd-RunInstances.html" rel="nofollow noreferrer">ec2-run-instances</a> documentation, and all this is meanwhile illustrated in more detail within <a href="http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/RootDeviceStorage.html#RootDeviceStorageConcepts" rel="nofollow noreferrer">Amazon EC2 Root Device Storage Concepts</a> as well:</p> <blockquote> <p>By default, the root device volume and the other volumes created when an Amazon EBS-backed instance is launched are automatically deleted when the instance terminates [...]. You can change the default behavior by setting the DeleteOnTermination flag to the value you want when you launch the instance. For an example of how to change the flag at launch time, see <a href="http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/RootDeviceStorage.html#Using_RootDeviceStorage" rel="nofollow noreferrer">Using Amazon EC2 Root Device Storage</a>.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload