Skip to content

Commit 31c6293

Browse files
committed
Updating region tag
1 parent 755ab7b commit 31c6293

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

gcbdr/backup_plan/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
# [START gcbdr_create_backupvault]
16+
# [START backupdr_create_backupvault]
1717

1818
resource "google_backup_dr_backup_vault" "default" {
1919
provider = google-beta
2020
location = "us-central1"
21-
backup_vault_id = "bv-1"
21+
backup_vault_id = "my-vault"
2222
description = "This is a second backup vault built by Terraform."
2323
backup_minimum_enforced_retention_duration = "100000s"
2424

@@ -37,15 +37,15 @@ resource "google_backup_dr_backup_vault" "default" {
3737
allow_missing = "true"
3838
}
3939

40-
# [END gcbdr_create_backupvault]
40+
# [END backupdr_create_backupvault]
4141

42-
# [START gcbdr_create_backupplan]
42+
# [START backupdr_create_backupplan]
4343

4444
# Before creating a backup plan, you need to create backup vault (google_backup_dr_backup_vault).
4545
resource "google_backup_dr_backup_plan" "default" {
4646
provider = google-beta
4747
location = "us-central1"
48-
backup_plan_id = "bp-test"
48+
backup_plan_id = "my-bp"
4949
resource_type = "compute.googleapis.com/Instance"
5050
backup_vault = google_backup_dr_backup_vault.default.name
5151

@@ -66,4 +66,4 @@ resource "google_backup_dr_backup_plan" "default" {
6666
}
6767
}
6868

69-
# [END gcbdr_create_backupplan]
69+
# [END backupdr_create_backupplan]

gcbdr/backup_plan_association/main.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
resource "google_service_account" "default" {
1818
provider = google-beta
19-
account_id = "tf-test-my-custom-1"
19+
account_id = "my-sa"
2020
display_name = "Custom SA for VM Instance"
2121
}
2222

2323
resource "google_compute_instance" "default" {
2424
provider = google-beta
25-
name = "tf-test-compute-instance-1"
25+
name = "my-instance"
2626
machine_type = "n2-standard-2"
2727
zone = "us-central1-a"
2828
tags = ["foo", "bar"]
@@ -58,7 +58,7 @@ resource "google_compute_instance" "default" {
5858
resource "google_backup_dr_backup_vault" "default" {
5959
provider = google-beta
6060
location = "us-central1"
61-
backup_vault_id = "tf-test-bv-1"
61+
backup_vault_id = "my-vault"
6262
description = "This is a second backup vault built by Terraform."
6363
backup_minimum_enforced_retention_duration = "100000s"
6464

@@ -80,7 +80,7 @@ resource "google_backup_dr_backup_vault" "default" {
8080
resource "google_backup_dr_backup_plan" "default" {
8181
provider = google-beta
8282
location = "us-central1"
83-
backup_plan_id = "tf-test-bp-test-1"
83+
backup_plan_id = "my-bp"
8484
resource_type = "compute.googleapis.com/Instance"
8585
backup_vault = google_backup_dr_backup_vault.default.name
8686

@@ -101,17 +101,17 @@ resource "google_backup_dr_backup_plan" "default" {
101101
}
102102
}
103103

104-
# [START gcbdr_create_backupplanassociation]
104+
# [START backupdr_create_backupplanassociation]
105105

106106
# Before creating a backup plan association, you need to create backup plan (google_backup_dr_backup_plan)
107107
# and compute instance (google_compute_instance).
108108
resource "google_backup_dr_backup_plan_association" "default" {
109109
provider = google-beta
110110
location = "us-central1"
111-
backup_plan_association_id = "tf-test-bpa-test"
111+
backup_plan_association_id = "my-bpa"
112112
resource = google_compute_instance.default.id
113113
resource_type = "compute.googleapis.com/Instance"
114114
backup_plan = google_backup_dr_backup_plan.default.name
115115
}
116116

117-
# [END gcbdr_create_backupplanassociation]
117+
# [END backupdr_create_backupplanassociation]

gcbdr/backup_vault/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
# [START gcbdr_create_backupvault]
17+
# [START backupdr_create_backupvault]
1818

1919
resource "google_backup_dr_backup_vault" "default" {
2020
provider = google-beta
2121
location = "us-central1"
22-
backup_vault_id = "bv-1"
22+
backup_vault_id = "my-vault"
2323
description = "This vault is provisioned by Terraform."
2424
backup_minimum_enforced_retention_duration = "100000s"
2525

@@ -38,4 +38,4 @@ resource "google_backup_dr_backup_vault" "default" {
3838
allow_missing = "true"
3939
}
4040

41-
# [END gcbdr_create_backupvault]
41+
# [END backupdr_create_backupvault]

0 commit comments

Comments
 (0)