How can I associate a static public IP address with my EC2 Windows or Linux instance or network interface?
2 minute read
0
The auto-assigned public IP address associated with my Amazon Elastic Compute Cloud (Amazon EC2) instance changes every time I stop and start the instance.
Short description
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).
You can use these tools to associate an Elastic IP address with your EC2 instance:
You can't use an auto-assigned public IP address to retain or reserve the current public IP address assigned to the instance.
You can't convert an auto-assigned public IP address to an Elastic IP address.
Note: The default quota for Elastic IP addresses is 5 per Region per AWS account. For more information about quotas and how to request an increase, see Elastic IP address quota.
Resolution
To allocate and associate an Elastic IP address with your EC2 Windows or Linux instance or network interface, follow these steps: