Using Console
Using CLI
autohealingPolicies
property. Use the following command to set the property:Using Python
[PROJECT_ID]
and [ZONE]
with your GCP project ID and the zone in which your instances are running.[PROJECT_ID]
, [ZONE]
and [REGION]
with your GCP project ID, the zone in which your instances are running, and the region to which you want to regionalize your instances.Note that this code will create a new instance in the specified region, migrate the data from the old instance to the new instance, and then delete the old instance. You should test this code thoroughly in a non-production environment before running it in production.