# PERSIS VOLUME ATTACHED TO A RUNNING INSTANCE
# docs https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/terminating-instances.html#delete-on-termination-running-instance
# https://alexjoz.gitbooks.io/code-life/content/chapter4.html
# mapping.json
[
{
"DeviceName": "/dev/sda1",
"Ebs": {
"DeleteOnTermination": false
}
}
]
# Via AWS CLI
aws ec2 modify-instance-attribute --instance-id i-0e8f655ecb1168db7 --region us-east-2 --block-device-mappings file://mapping.json