Using Existing Public IP Assigned to EC2 as Elastic IP


Hi all

I have got a EC2 instance and a public IP.

I would like to use this public IP (existing one) as an "elastic" IP.

Is this possible? I have got a few elastic IP created but I prefer using the existing IP assigned to my EC2 instance as "elastic" IP instead of assign a new IP to my EC2 instance.

Note: I have assigned this public IP (that was assigned to my existing EC2 instance) to DNS hostname e.g. and we are providing 24x7 service at the moment.

If possible, we do not want to interrupt existing service by changing a new public IP, reassign it to DNS host and wait for the DNS to propagate etc.


Regards Ken

  • Where us your DNS record stored are you able to control the DNS TTL?

asked 7 months ago278 views
2 Answers

Unfortunately, it is not possible -

A public IP address is assigned to your instance from Amazon's pool of public IPv4 addresses, and is not associated with your AWS account. When a public IP address is disassociated from your instance, it is released back into the public IPv4 address pool, and you cannot reuse it.

If you require a persistent public IP address that can be associated to and from instances as you require, use an Elastic IP address instead.

answered 7 months ago
profile pictureAWS
reviewed 7 months ago

Unfortunately, it is not possible to convert a existing public IP to elastic IP. The reason is that both the public and elastic IP use different IP address pool.

Hence, if an elastic IP is required, it can be associated to the instance post which the existing public IP will be released back to the pool.

answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions