Score:1

AWS EC2 - how to reserve assigned IP address

fr flag

My AWS EC2 instances has been assigned IP addresses. Since I want to change machine type because of underutilization, I have to stop them and lose my assigned addresses. Is there any way how to reserve IP addresses I am currently running these instances with? Thanks.

Score:1
us flag

If you stop the instance its IP will change. If you want a static public IP you can assign an Elastic IP address to your instance, if you want a static private IP you can launch your instance inside a VPC. So, if you haven't already applied one of these solutions, there's no way to preserve its current IP.

wtdmn avatar
fr flag
"if you haven't already applied one of these solutions, there's no way to preserve its current IP "I am afraid this answers my question, thanks.
Score:0
cn flag

IPv6 addresses assigned to EC2 instances, unlike v4, persist though stopping the instance. For either address family, terminating an instance will release the IP.

Elastic IP is an IPv4 only object that reserves an IP address.

Also consider putting the instances behind a load balancer. A stable service name can be helpful.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.