Passer au contenu

How can EC2 maintain IP addresses in a multi-AZ failover situation?

0

A vendor provides a service to a single AWS region. A client of that vendor has an EC2 instance residing in a single AZ. The vendor's service is tied to an IP address for licensing purposes.

Now let's say that the AZ or specific EC2 fails.

I know that you can set auto scaling groups to spin up replacements for failed instances, but the IP address is going to be different and thus the vendor's license scheme will be a blocker.

I think I recall the ability to reserve a specific IP for EC2, but haven't touched that to-date. But that being said, can you use that reserved IP address across AZs?

So the question is, in the event of a failure of an EC2 instance in AZ1, can I have a specific IP address be picked up for a backup EC2 instance in AZ2?

AWS
demandé il y a 5 ans948 vues
1 réponse
0
Réponse acceptée

You can use an Elastic IP address for this. It can be assigned across a region. To re-assign the Elastic IP address when an instance is 'lost', you can use CloudWatch Events.

AWS
EXPERT
répondu il y a 5 ans
EXPERT
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.