How to keep the same UUID of an EC2 instance after failover and failback part of the DR

0

Are there any ways to keep the UUID of an EC2 instance same before and after failover? our testing shows that this was changing with failover and failback process. we are using DRS service for this process. If not, are there any recommendations to keep the UUID same across these failover and failback?

Raj
asked 3 months ago111 views
2 Answers
1

When a new instance is created (as is done during most failover/failback processes) it gets a new instance identifier (I think that's what you mean by UUID).

You might be able to achieve what you want by always having the instance in a running or shutdown state (i.e. they've been created and are waiting to be activated) but there is extra cost involved there.

Why is it important to have the same instance id?

profile pictureAWS
EXPERT
answered 3 months ago
  • Thank you. one of our legacy app using this identifier for custom billing purpose. so we want to maintain the same identifier for total billing purpose.

  • Have you considered using tags instead of the instance identifier?

1

How are you running your DR tests. If an instance is terminated, and recreated it will have a different UUID. Would recommend using the below blog for non disruptive tests of EDR. https://aws.amazon.com/blogs/storage/how-to-perform-non-disruptive-tests-with-aws-elastic-disaster-recovery/

profile pictureAWS
answered 3 months ago