Restoring an EC2 Instance - the Public IP is missing

1

Hello All. I've successfully performed a restore of an EC2 Instance using AWS Backup, however it does not have a public IP address associated with it, it only has the private IP. I understand that when creating instances you decide whether or not to have a Public IP, however when restoring there were no options for Public IP, and so I assumed it would keep that setting.

What is the proper procedure to restore an EC2 instance and allow it to keep the Public IP setting? Or how do you assign it after the restore?

Thanks Dan

dgzagm
質問済み 2年前1445ビュー
3回答
0
承認された回答

Hi Dan,

The auto-assigned public IP address associated with my Amazon Elastic Compute Cloud (Amazon EC2) instance changes every time you stop and start the instance.

An Elastic IP address is a static public IPv4 address associated with your AWS account in a specific Region. Unlike an auto-assigned public IP address, an Elastic IP address is preserved after you stop and start your instance in a virtual private cloud (VPC).

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-recover-ip-address/

Hope this helps

profile pictureAWS
エキスパート
回答済み 2年前
profile picture
エキスパート
レビュー済み 7ヶ月前
0

Thank you! This helped me now as well. Agreed with Dan, there should be some option when restoring the instance to specify the public IP setting, or a link to update the subnet settings.

回答済み 1年前
0

A little late to the party, but I have your answer.

From within AWS Backup Vault, select the instance you'd like to restore. From the Actions menu, select "Copy", then chose the same region you'd like to restore into and select "Copy" (I made a copy to the default vault for testing). From within the vault the Backup was copied into, find the AMI ID, then navigate to EC2 / AMI and locate the AMI. Select AMI and "Launch Instance from AMI". This will bring up the Launch Instance window that will allow you to configure with Public IP.

Also, if you're following AWS Security Hub, it will yell at you for not having Encrypted EBS volumes when creating backups. This would be a good opportunity to also encrypt your volumes so that any future backups you make from the new instance are also encrypted.

Hope this helps!

aDallo
回答済み 5ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ