Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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" {
Expand All @@ -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"
}
Expand Down
Loading