Skip to content

Instantly share code, notes, and snippets.

@kessler
Created December 19, 2017 00:49
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 kessler/197646a4f458ee912902a0d0c53cac73 to your computer and use it in GitHub Desktop.
Save kessler/197646a4f458ee912902a0d0c53cac73 to your computer and use it in GitHub Desktop.
change ebs delete on termination behavior
aws ec2 modify-instance-attribute --profile [profile] --region [region] --instance-id [instanceid] --block-device-mappings "[{\"DeviceName\": \"/dev/sda1\",\"Ebs\":{\"DeleteOnTermination\":false}}]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment