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
Deprecated: "This property is only applicable to First Generation instances, and First Generation instances are now deprecated.",
140
143
Description: `This property is only applicable to First Generation instances. First Generation instances are now deprecated, see https://cloud.google.com/sql/docs/mysql/deprecation-notice for information on how to upgrade to Second Generation instances. A list of Google App Engine project names that are allowed to access this instance.`,
@@ -346,6 +349,7 @@ settings.backup_configuration.binary_log_enabled are both set to true.`,
346
349
"user_labels": {
347
350
Type: schema.TypeMap,
348
351
Optional: true,
352
+
Computed: true,
349
353
Elem: &schema.Schema{Type: schema.TypeString},
350
354
Description: `A set of key/value user label pairs to assign to the instance.`,
351
355
},
@@ -604,6 +608,29 @@ settings.backup_configuration.binary_log_enabled are both set to true.`,
604
608
},
605
609
},
606
610
},
611
+
"clone": {
612
+
Type: schema.TypeList,
613
+
Optional: true,
614
+
Computed: false,
615
+
AtLeastOneOf: []string{"settings", "clone"},
616
+
Description: `Configuration for creating a new instance as a clone of another instance.`,
617
+
MaxItems: 1,
618
+
Elem: &schema.Resource{
619
+
Schema: map[string]*schema.Schema{
620
+
"source_instance_name": {
621
+
Type: schema.TypeString,
622
+
Required: true,
623
+
Description: `The name of the instance from which the point in time should be restored.`,
@@ -239,7 +239,11 @@ in Terraform state, a `terraform destroy` or `terraform apply` command that dele
239
239
**NOTE:** Restoring from a backup is an imperative action and not recommended via Terraform. Adding or modifying this
240
240
block during resource creation/update will trigger the restore action after the resource is created/updated.
241
241
242
-
The required `settings` block supports:
242
+
*`clone` - (Optional) The context needed to create this instance as a clone of another instance. When this field is set during
243
+
resource creation, Terraform will attempt to clone another instance as indicated in the context. The
244
+
configuration is detailed below.
245
+
246
+
The `settings` block supports:
243
247
244
248
*`tier` - (Required) The machine type to use. See [tiers](https://cloud.google.com/sql/docs/admin-api/v1beta4/tiers)
245
249
for more details and supported versions. Postgres supports only shared-core machine types such as `db-f1-micro`,
@@ -378,6 +382,14 @@ to work, cannot be updated, and supports:
378
382
*`verify_server_certificate` - (Optional) True if the master's common name
379
383
value is checked during the SSL handshake.
380
384
385
+
The optional `clone` block supports:
386
+
387
+
*`source_instance_name` - (Required) Name of the source instance which will be cloned.
388
+
389
+
*`point_in_time` - (Optional) The timestamp of the point in time that should be restored.
390
+
391
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
392
+
381
393
The optional `restore_backup_context` block supports:
382
394
**NOTE:** Restoring from a backup is an imperative action and not recommended via Terraform. Adding or modifying this
383
395
block during resource creation/update will trigger the restore action after the resource is created/updated.
0 commit comments