Hello AWS Customer,
The public IP addressing feature is only available during launch. And, whether you assign a public IP address to your instance during launch or not, as you know, you can associate an Elastic IP address with your instance after it's launched.
Hope you will find this information useful. Please let me know if you have any further questions or concerns. I will be more than glad to assist you.
Short answer: You can't do that with a Public IP. But you can do it with an Elastic IP.
You can associate a Public IP with an instance during launch but not after launch. However, you can allocate an Elastic IP then associate it with your instance after launch. Should you wish to change the IP you can de-associate it; release the Elastic IP; obtain a new one and associate it with your instance.
How can I get a non-Elastic, public IP for an EC2 instance that has only a private IP?Accepted Answerasked 16 days ago
How Soon Can External Access be possible to My EC2 Instance Public IP Addressasked 5 months ago
Private Static IP for EC2Accepted Answerasked 4 months ago
ftp error 500 I won't open a connection to private ip but public ipasked 5 months ago
EC2 instance doesn't get a new public IP after Elastic IP is disassociatedasked 7 months ago
Can't ssh to EC2 after assigning an additional public ip(elastic ip)asked a year ago
Why it isn’t re-assigned a public IP address and public IP DNS for a Instance in a public subnet after stopped and started in case of attached 2 eni.Accepted Answerasked 3 months ago
Public IP been changed after I reboot my EC2asked 5 years ago
Restoring an EC2 Instance - the Public IP is missingAccepted Answerasked 6 months ago
EC2 instance public IP and DNS IP not workingAccepted Answerasked a month ago