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,520 points
767 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,020 points
2,089 views
0 votes
1 answer

How do I assume an IAM role using the AWS CLI?

I was trying to assume an IAM ...READ MORE

answered Oct 26 in AWS by anonymous
70 views
0 votes
1 answer
0 votes
1 answer
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,922 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