跳至內容

Need to Reassign Elastic IP from Old EC2 to New EC2 Instance

0

My previous EC2 instance (now terminated) became corrupted, and I had several configurations tied to its Elastic IP address. I have launched a new EC2 instance and assigned it a different IP. However, I need to reassign the old Elastic IP to this new instance to maintain continuity across services.

Is it possible to reassociate the old Elastic IP with the new EC2 instance?

If yes, what steps should I follow to do that safely?

If the Elastic IP was accidentally released, is there any way to recover it?

Please advise on the best approach.

已提問 1 年前檢視次數 204 次

1 個回答
0

Hello.

Do you still have the old Elastic IP address in your account?
If so, you can move it by detaching it from the old EC2 instance and attaching it to the new EC2 instance.
You can replace it by following the steps in the document below.
https://repost.aws/knowledge-center/ec2-move-elastic-ip

If the Elastic IP was accidentally released, is there any way to recover it?

If you accidentally release an Elastic IP address, you can restore it by following the steps in the following document.
However, this only applies if you have not acquired an Elastic IP address in another AWS account since releasing it.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing-eips-releasing.html

You can't recover an Elastic IP address if it has been allocated to another AWS account, or if it will result in your exceeding your Elastic IP address limit.
You can't recover tags associated with an Elastic IP address.

專家

已回答 1 年前

專家

已審閱 1 年前

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

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