1616
1717resource "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
2323resource "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" {
5858resource "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" {
8080resource "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).
108108resource "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 ]
0 commit comments