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
settings.backup_configuration.enabled is set to true.
192
192
For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true.
193
193
For Postgres instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled
194
-
is set to true.`,
194
+
is set to true. Defaults to ZONAL.`,
195
195
},
196
196
"backup_configuration": {
197
197
Type: schema.TypeList,
@@ -292,7 +292,7 @@ is set to true.`,
292
292
Type: schema.TypeBool,
293
293
Optional: true,
294
294
Default: true,
295
-
Description: `Enables auto-resizing of the storage size. Defaults to true. Set to false if you want to set disk_size.`,
295
+
Description: `Enables auto-resizing of the storage size. Defaults to true.`,
296
296
},
297
297
"disk_autoresize_limit": {
298
298
Type: schema.TypeInt,
@@ -305,14 +305,14 @@ is set to true.`,
305
305
Optional: true,
306
306
// Default is likely 10gb, but it is undocumented and may change.
307
307
Computed: true,
308
-
Description: `The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. If you want to set this field, set disk_autoresize to false.`,
308
+
Description: `The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.`,
309
309
},
310
310
"disk_type": {
311
311
Type: schema.TypeString,
312
312
Optional: true,
313
313
Default: "PD_SSD",
314
314
DiffSuppressFunc: caseDiffDashSuppress,
315
-
Description: `The type of data disk: PD_SSD or PD_HDD.`,
315
+
Description: `The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.`,
316
316
},
317
317
"ip_configuration": {
318
318
Type: schema.TypeList,
@@ -634,7 +634,7 @@ is set to true.`,
634
634
Optional: true,
635
635
ForceNew: true,
636
636
AtLeastOneOf: replicaConfigurationKeys,
637
-
Description: `The number of seconds between connect retries.`,
637
+
Description: `The number of seconds between connect retries. MySQL's default is 60 seconds.`,
Copy file name to clipboardExpand all lines: website/docs/r/sql_database_instance.html.markdown
+10-10
Original file line number
Diff line number
Diff line change
@@ -206,8 +206,8 @@ includes an up-to-date reference of supported versions.
206
206
That service account needs the `Cloud KMS > Cloud KMS CryptoKey Encrypter/Decrypter` role on your
207
207
key - please see [this step](https://cloud.google.com/sql/docs/mysql/configure-cmek#grantkey).
208
208
209
-
*`deletion_protection` - (Optional, Default: `true`) Whether or not to allow Terraform to destroy the instance. Unless this field is set to false
210
-
in Terraform state, a `terraform destroy` or `terraform apply` command that deletes the instance will fail.
209
+
*`deletion_protection` - (Optional) Whether or not to allow Terraform to destroy the instance. Unless this field is set to false
210
+
in Terraform state, a `terraform destroy` or `terraform apply` command that deletes the instance will fail. Defaults to `true`.
211
211
212
212
*`restore_backup_context` - (optional) The context needed to restore the database to a backup run. This field will
213
213
cause Terraform to trigger the database to restore from the backup run indicated. The configuration is detailed below.
@@ -227,22 +227,22 @@ The `settings` block supports:
227
227
*`activation_policy` - (Optional) This specifies when the instance should be
228
228
active. Can be either `ALWAYS`, `NEVER` or `ON_DEMAND`.
229
229
230
-
*`availability_type` - (Optional, Default: `ZONAL`) The availability type of the Cloud SQL
230
+
*`availability_type` - (Optional) The availability type of the Cloud SQL
231
231
instance, high availability (`REGIONAL`) or single zone (`ZONAL`).' For all instances, ensure that
232
232
`settings.backup_configuration.enabled` is set to `true`.
233
233
For MySQL instances, ensure that `settings.backup_configuration.binary_log_enabled` is set to `true`.
234
234
For Postgres instances, ensure that `settings.backup_configuration.point_in_time_recovery_enabled`
235
-
is set to `true`.
235
+
is set to `true`. Defaults to `ZONAL`.
236
236
237
237
*`collation` - (Optional) The name of server instance collation.
238
238
239
-
*`disk_autoresize` - (Optional, Default: `true`) Enables auto-resizing of the storage size. Set to false if you want to set `disk_size`.
239
+
*`disk_autoresize` - (Optional) Enables auto-resizing of the storage size. Defaults to `true`.
240
240
241
-
*`disk_autoresize_limit` - (Optional, Default: `0`) The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
241
+
*`disk_autoresize_limit` - (Optional) The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
242
242
243
-
*`disk_size` - (Optional, Default: `10`) The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. If you want to set this field, set `disk_autoresize` to false.
243
+
*`disk_size` - (Optional) The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
244
244
245
-
*`disk_type` - (Optional, Default: `PD_SSD`) The type of data disk: PD_SSD or PD_HDD.
245
+
*`disk_type` - (Optional) The type of data disk: PD_SSD or PD_HDD. Defaults to `PD_SSD`.
246
246
247
247
*`pricing_plan` - (Optional) Pricing plan for this instance, can only be `PER_USE`.
248
248
@@ -375,8 +375,8 @@ to work, cannot be updated, and supports:
375
375
*`client_key` - (Optional) PEM representation of the replica's private key. The
376
376
corresponding public key in encoded in the `client_certificate`.
377
377
378
-
*`connect_retry_interval` - (Optional, Default: 60) The number of seconds
379
-
between connect retries.
378
+
*`connect_retry_interval` - (Optional) The number of seconds
379
+
between connect retries. MySQL's default is 60 seconds.
380
380
381
381
*`dump_file_path` - (Optional) Path to a SQL file in GCS from which replica
382
382
instances are created. Format is `gs://bucket/filename`.
0 commit comments