Closed dionjwa closed 1 year ago
We have a couple of options:
Make the location_preference
dynamic: If no value provided for follow_gae_application
or master_zone
, don't create the inline location_preference
. This would have to be replicated to failover instance and read replicas.
Read available zones from google_compute_zones
and pick one.
Not really a huge fan of the second option... The first option should get rid of the diff. However, I'd say in majority of cases, you'd want to explicitly set the zone(s).
Up for a PR?
Closing due to repo sunset
Version:
source = "github.com/gruntwork-io/terraform-google-sql.git//modules/cloud-sql?ref=v0.2.0"
I didn't have a default
master_zone
specified, so I would constantly get terraform plan diffs:Maybe this could default to an actual valid value, if not specified?