How do I change the Root Volume to persist at launch time using the CLI

0 votes
How do I change the Root Volume to persist at launch time using the CLI?
Oct 21, 2019 in AWS by Hannah
• 18,570 points
428 views

1 answer to this question.

0 votes

add the following option to your run-instances command:

--block-device-mappings file://mapping.json

Specify the following in mapping.json:

[
  {
    "DeviceName": "/dev/sda1",
    "Ebs": {
      "DeleteOnTermination": false,
      "SnapshotId": "snap-1234567890abcdef0",
      "VolumeType": "gp2"
    }
  }
]
answered Oct 21, 2019 by Pearl

Related Questions In AWS

0 votes
1 answer

How to exclude specific folders every time I run 'eb deploy' using AWS EB CLI

If there is not .ebignore file it ...READ MORE

answered Oct 24, 2018 in AWS by Priyaj
• 58,090 points
1,830 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,170 points
19,037 views
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
+1 vote
2 answers

How to launch and access an instance using AWS-CLI?

aws ec2 run-instances --image-id ami-id --key-name yourkeyname ...READ MORE

answered Feb 23, 2019 in AWS by Shashank
• 1,370 points
1,598 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP