You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql: added `node_count` field to `sql_database_instance` resource, and added new value `READ_POOL_INSTANCE` to the `instance_type` field of `sql_database_instance` resource
settings.backup_configuration.enabled is set to true.
331
331
For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true.
332
332
For Postgres instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled
333
-
is set to true. Defaults to ZONAL.`,
333
+
is set to true. Defaults to ZONAL.
334
+
For read pool instances, this field is read-only. The availability type is changed by specifying
335
+
the number of nodes (node_count).`,
336
+
},
337
+
"effective_availability_type": {
338
+
Type: schema.TypeString,
339
+
Computed: true,
340
+
Description: `The availability type of the Cloud SQL instance, high availability
341
+
(REGIONAL) or single zone (ZONAL). This field always contains the value that is reported by the
342
+
API (for read pools, effective_availability_type may differ from availability_type).`,
334
343
},
335
344
"backup_configuration": {
336
345
Type: schema.TypeList,
@@ -881,7 +890,14 @@ is set to true. Defaults to ZONAL.`,
881
890
Type: schema.TypeString,
882
891
Computed: true,
883
892
Optional: true,
884
-
Description: `The type of the instance. The valid values are:- 'SQL_INSTANCE_TYPE_UNSPECIFIED', 'CLOUD_SQL_INSTANCE', 'ON_PREMISES_INSTANCE' and 'READ_REPLICA_INSTANCE'.`,
893
+
Description: `The type of the instance. See https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/instances#SqlInstanceType for supported values.`,
894
+
},
895
+
896
+
"node_count": {
897
+
Type: schema.TypeInt,
898
+
Computed: true,
899
+
Optional: true,
900
+
Description: `For a read pool instance, the number of nodes in the read pool.`,
885
901
},
886
902
887
903
"replica_configuration": {
@@ -1264,6 +1280,10 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{})
0 commit comments