stkvtflw
stkvtflw

Reputation: 13507

How do I rotate ephemeral IP on Google Cloud Compute Engine instance?

Is there a way to change the external IP of a Compute Engine instance periodically?

I have a Compute Engine Group that I scale down to 0 and then back to whatever number I need to refresh ephemeral external IPs. Is there a better way?

Upvotes: 0

Views: 443

Answers (1)

stkvtflw
stkvtflw

Reputation: 13507

gcloud compute instance-groups managed recreate-instances <group_name> --instances=<instance_id> --zone=<instance_zone>

Upvotes: 1

Related Questions