- Más nuevo
- Más votos
- Más comentarios
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
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.
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!
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 5 meses
The newly restored Instance does not have a public IP, even after I stop and start the instance. I do not want to use EIP, the original server did not use EIP.
Using EIP is the only way to preserve the Public IP, please see this link for detail description: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-recover-ip-address/
Agreed, but I don't need this Instance to have a preserved public IP. I'm happy with the "Auto-assign public IP". how do I set Auto-assign public IP on the restored Instance?
Note this statement: "The public IP addressing feature is only available during launch. However, whether you assign a public IP address to your instance during launch or not, you can associate an Elastic IP address with your instance after it's launched" Reference: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html
Additionally please make sure this setting "Enable auto-assign public IPv4 address" is enabled for the subnet where the instance is launched. Reference: https://docs.aws.amazon.com/vpc/latest/userguide/working-with-subnets.html (See the section: Modify the public IPv4 addressing attribute for your subnet)