I used "Dissociate Elastic IP address" from an Amazon EC2 instance that was running and allocated that Elastic IP address to another instance. Since doing this, the EC2 instance does not have a public IP address.
In my subnets, auto-assign Public IP address is enabled, but the EC2 instance is still not getting a public IP address. I have restarted the EC2 instance and I have Stopped it and Started it again, but there is no public IP address.
Can anyone please share with me a solution for this?