Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Automating multi region Cloud SQL for PostgreSQL failover (read replica promotion) using Terraform

Hello All,

As anyone used Terraform to automate your multi region Cloud SQL for PostgreSQL failover (read replica promotion) using Terraform? If so, How did you manage to keep the TF state file always in SYNC?

regards,

Sridhar

0 2 1,445
2 REPLIES 2

Hi @slaksh10,

Welcome to Google Cloud Community!

You may wanna check this documentation about Using Cloud SQL cross-region replicas. However, for the "TF state file can be synced" you can reach out to Terraform Support and file a ticket.  You may can also check their community to find a similar case of yours.

Thanks

Yes we have tested the cross region failover which is working. but we wanted it to be implemented in terraform.