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 in AWS by Hannah
• 16,300 points
22 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 by Pearl

Related Questions In AWS

0 votes
1 answer
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,090 points
4,904 views
0 votes
1 answer
0 votes
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 in AWS by Shashank
• 1,350 points
160 views