Skip to content

Commit b0f745d

Browse files
added fetchbpa
1 parent 33cd1e6 commit b0f745d

File tree

2 files changed

+8
-1
lines changed
  • backupdr

2 files changed

+8
-1
lines changed

backupdr/data_source_references/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
data "google_backup_dr_data_source_references" "my_sql_references" {
2-
provider = google-beta
32
location = "us-central1"
43
resource_type = "sqladmin.googleapis.com/Instance"
54
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
data "google_backup_dr_backup_plan_associations" "my_bpas" {
2+
location = "us-central1"
3+
resource_type = "sqladmin.googleapis.com/Instance"
4+
}
5+
6+
output "bpa_names" {
7+
value = [for bpa in data.google_backup_dr_backup_plan_associations.my_bpas.associations : bpa.name]
8+
}

0 commit comments

Comments
 (0)