Skip to content

Commit

Permalink
Fix secondary cluster basic example
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Sahu committed Sep 21, 2023
1 parent 8b38b24 commit 2e0930e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ resource "google_alloydb_cluster" "<%= ctx[:vars]['secondary_resource_id'] %>" {
cluster_type = "SECONDARY"

secondary_config {
primary_cluster_name = google_alloydb_cluster."<%= ctx[:primary_resource_id] %>".name
primary_cluster_name = google_alloydb_cluster.<%= ctx[:primary_resource_id] %>.name
}

labels = {
test = "<%= ctx[:vars]['alloydb_secondary_cluster_name'] %>"
}

depends_on = [google_alloydb_cluster."<%= ctx[:primary_resource_id] %>"]
depends_on = [google_alloydb_cluster.<%= ctx[:primary_resource_id] %>]
}

data "google_project" "project" {}
Expand Down

0 comments on commit 2e0930e

Please sign in to comment.