Amazon EC2 enables you to replace the root EBS volume for a running instance

Limitations:

  • You can’t replace the root volume if it is an instance store volume.
  • You can’t replace the root volume for metal instances.

More details:

https://aws.amazon.com/about-aws/whats-new/2021/04/ec2-enables-replacing-root-volumes-for-quick-restoration-and-troubleshooting/

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root