Skip to content

Instantly share code, notes, and snippets.

@mbarton
Created November 1, 2019 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbarton/b4b52badd30f3eb20b2aa4342b86a464 to your computer and use it in GitHub Desktop.
Save mbarton/b4b52badd30f3eb20b2aa4342b86a464 to your computer and use it in GitHub Desktop.
Remove delete on termination for CSV to ES
aws ec2 modify-instance-attribute --instance-id <EC2_INSTANCE_ID> --block-device-mappings file://mapping.json --profile investigations --region eu-west-1
[
{
"DeviceName": "/dev/sda1",
"Ebs": {
"DeleteOnTermination": false,
"VolumeId": "<EBS_VOLUME_ID>"
}
},
{
"DeviceName": "/dev/xvda",
"Ebs": {
"DeleteOnTermination": false,
"VolumeId": "<EBS_VOLUME_ID>"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment