- Newest
- Most votes
- Most comments
Hello, thank you for your post. The following is noted in our documentation on EC2 Instance IP Addressing[1]:
"A private IPv4 address, regardless of whether it is a primary or secondary address, remains associated with the network interface when the instance is stopped and started, or hibernated and started, and is released when the instance is terminated."
With this in mind, you can be certain that even if your EC2 instance is stopped or restarted, the primary private IPv4 address will remain associated with it, and the IP address will never be assigned to a different instance. After the EC2 instance is terminated, its primary private IP address will be released, at which point it could potentially be automatically assigned to a newly launched instance.
References:
[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago