Reputation: 13507
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
Reputation: 13507
gcloud compute instance-groups managed recreate-instances <group_name> --instances=<instance_id> --zone=<instance_zone>
Upvotes: 1