跳至內容

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
已提問 5 年前檢視次數 946 次
1 個回答
0
已接受的答案

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
專家
已回答 5 年前
專家
已審閱 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。