0

I have Elastic IP, I have EC2 instance. If I reboot the instance elastic IP becomes detached. How can I make it persistent?

freento
  • 135
  • 1
  • 3
  • 12

1 Answers1

0

Elastic IPs are not detached when you reboot an EC2 instance inside a VPC. They are also not detached when you stop then start your instance.

If you're using EC2-Classic and you stop, then start your instance it may be disassociated. EC2-Classic is really, really old now and probably should be upgraded.

From AWS docs

When you stop a running instance, the following happens: The instance retains its associated Elastic IP addresses. You're charged for any Elastic IP addresses associated with a stopped instance. With EC2-Classic, an Elastic IP address is dissociated from your instance when you stop it. For more information, see EC2-Classic.

Tim
  • 31,888
  • 7
  • 52
  • 78