in Technology by
How To Persist Root Device Volume In Amazon Ec2 Instance ?

1 Answer

0 votes
by

By default, the root device volume for an AMI backed by Amazon EBS is deleted when the instance terminates. To change the default behavior, set the DeleteOnTermination attribute to false using a block device mapping.

  • To change the root device volume of an instance to persist at launch using the console
  • Open the Amazon EC2 console.
  • From the Amazon EC2 console dashboard, click Launch Instance.
  • On the Choose an Amazon Machine Image (AMI) page, choose the AMI to use and click Select.
  • Follow the wizard to complete the Choose an Instance Type and Configure Instance Details pages.
  • On the Add Storage page, deselect the Delete On Termination check box for the root volume.
  • Complete the remaining wizard pages, and then click Launch.
  • Changing the Root Volume of an Instance to Persist Using the AWS CLI
  • Use the run-instances command to preserve the root volume by including a block device mapping that sets its DeleteOnTermination attribute for to false.

Related questions

0 votes
    What Is Amazon Ec2 Root Device Volume ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    How To Clean Up Your Amazon Ec2 Instance And Volume ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    How To Add A Ebs Volume To Your Amazon Ec2 Instance ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    How To Connect To Your Amazon Ec2 Instance ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    How To Launch An Amazon Ec2 Instance ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    We have a large ec2 instance running in Asia pacific region. We want to reserve that particular instance.In aws ... out on something Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I need SSH access to an Amazon EC2 instance running Ubuntu. All I have is the Amazon username and password. Any ideas? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I want to upgrade my Amazon EC2 micro (t1.micro) instance to large. Please help. Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    Explain Stopping, Starting, And Terminating An Amazon Ec2 Instance ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    Explain Storage For Amazon Ec2 Instance ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    I am trying to stop an Amazon EC2 instance and get the warning message Warning: Please note that any data on ... Amazon EC2 instance? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I'm working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no ... would be a great help! Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I am trying to use my Mac Terminal to scp a file from Downloads (phpMyAdmin I downloaded online) to my Amazon ... to fix my problem? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I want to use my Amazon ec2 instance but faced the following error: Permission denied (publickey). I have ... denied (publickey) Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I've created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me ... Nov 11:20 amazonec2.pem Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
...