What happens to an EBS volume when an EC2 instance is terminated?

When an EC2 instance is terminated, the EBS volume's behaviour depends on the DeleteOnTermination setting.

There are two possibilities:

  1. DeleteOnTermination = Enabled (Yes): The EBS volume is automatically deleted when the EC2 instance is terminated.
  2. Delete On Termination = Disabled (No): The EBS volume remains available even after the EC2 instance is terminated.
Пожалуйста, войдите, чтобы спрашивать, отвечать, делиться, ставить лайки и голосовать.