From 487e02bc4a5e204e1cf98087504ad73944722123 Mon Sep 17 00:00:00 2001 From: Aditi Kumari Date: Thu, 7 May 2026 09:43:07 +0000 Subject: [PATCH] Updating terraform doc to add note that name of target_instance field should match name of resource --- .../website/docs/r/sql_database_instance.html.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown b/mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown index 136d417a2097..d43ac14097cf 100644 --- a/mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown +++ b/mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown @@ -289,7 +289,7 @@ resource "google_sql_database_instance" "instance" { ``` ### Cloud SQL Instance created using point_in_time_restore -~> **NOTE:** Replace `backupdr_datasource` with the full datasource path, `time_stamp` should be in the format of `YYYY-MM-DDTHH:MM:SSZ`. +~> **NOTE:** Replace `backupdr_datasource` with the full datasource path, `time_stamp` should be in the format of `YYYY-MM-DDTHH:MM:SSZ`. The `target_instance` is required field and must match the name of the resource. ```hcl resource "google_sql_database_instance" "instance" { @@ -304,14 +304,14 @@ resource "google_sql_database_instance" "instance" { } point_in_time_restore_context { datasource = "backupdr_datasource" - target_instance = "target_instance_name" + target_instance = "main-instance" point_in_time = "time_stamp" } } ``` ### Cloud SQL Instance created using point_in_time_restore using multiregion datasource -~> **NOTE:** Replace `backupdr_datasource` with the full datasource path, `time_stamp` should be in the format of `YYYY-MM-DDTHH:MM:SSZ` and `region` with the target instance region. +~> **NOTE:** Replace `backupdr_datasource` with the full datasource path, `time_stamp` should be in the format of `YYYY-MM-DDTHH:MM:SSZ` and `region` with the target instance region. The `target_instance` is required field and must match the name of the resource. ```hcl resource "google_sql_database_instance" "instance" { @@ -326,7 +326,7 @@ resource "google_sql_database_instance" "instance" { } point_in_time_restore_context { datasource = "backupdr_datasource" - target_instance = "target_instance_name" + target_instance = "main-instance" point_in_time = "time_stamp" region = "region" }