I am currently trying to use the instance scheduler to stop and start my compute instances once a day to refresh their public ip's. Through much testing I have noticed that if I stop the instance for any period of time 5min -1hour they will return with the same IP even though they are all set to ephemeral IP. I have tried this with the scheduler and just stopping and starting the instance through the GCP Compute console.
I normally use Terraform to create my network and the scheduler and the IP never changes. When I manually create an instance it will change 1 out of every 3 stop and starts.
I have changed from e2-small instances to n2-standard-2 instances and tried setting the on-host- management to Terminate and I still have the same IP's.
I am using the Premium network but have also tried Standard with no change.
Is there any setting or any way to ensure that you are getting a true ephemeral IP like AWS and Azure give you when I stop and start my instances? Any help would be greatly appreciated.