Skip to content

Commit 2148154

Browse files
fetchbpa and fetchDsr
1 parent b0f745d commit 2148154

File tree

2 files changed

+6
-6
lines changed
  • backupdr

2 files changed

+6
-6
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
data "google_backup_dr_data_source_references" "my_sql_references" {
1+
data "google_backup_dr_data_source_references" "all_csql_data_source_references" {
22
location = "us-central1"
33
resource_type = "sqladmin.googleapis.com/Instance"
44
}
55

6-
output "first_sql_reference_name" {
7-
value = data.google_backup_dr_data_source_references.my_sql_references.data_source_references[0].name
6+
output "csql_data_source_references" {
7+
value = data.google_backup_dr_data_source_references.all_csql_data_source_references.data_source_references
88
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
data "google_backup_dr_backup_plan_associations" "my_bpas" {
1+
data "google_backup_dr_backup_plan_associations" "csql_bpas" {
22
location = "us-central1"
33
resource_type = "sqladmin.googleapis.com/Instance"
44
}
55

6-
output "bpa_names" {
7-
value = [for bpa in data.google_backup_dr_backup_plan_associations.my_bpas.associations : bpa.name]
6+
output "csql_bpas" {
7+
backup_plan_associations = google_backup_dr_backup_plan_associations.csql_bpas
88
}

0 commit comments

Comments
 (0)