- Newest
- Most votes
- Most comments
Hello,
Thank you for your questions,
Applies to Lightsail:
We can answer 1 and 2 by quoting the official Lightsail documentation, "The default dynamic public IP address attached to your Amazon Lightsail instance changes every time you stop and restart the instance. Create a static IP address and attach it to your instance to keep the public IP address from changing"
You can follow steps in docs [1] to create a static IP that does not change.
Applies to EC2:
For EC2 the default public IP will change on stop/start but retained during reboots, to preserve the IP during stop/starts you can attached an Elastic IP to the instance [2]
Hope this helps, let me know if there is anything further.
[1] https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-create-static-ip
[2] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html
Relevant content
- asked 8 months ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 12 days ago
- AWS OFFICIALUpdated 2 months ago