- Newest
- Most votes
- Most comments
Hello.
By default, the root EBS volume will be deleted when EC2 is deleted.
If you want to prevent it from being deleted, you need to change the EBS settings.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-root-volume-delete-on-termination.html
By default, the Amazon EBS root volume for an instance is deleted when the instance terminates. You can change the default behavior to ensure that an Amazon EBS root volume persists after the instance terminates. To change the default behavior, set the DeleteOnTermination attribute to false. You can do so either at instance launch or later on.
You can configure it by following the steps described in the document below.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-root-volume-delete-on-termination.html#set-deleteOnTermination-aws-cli
