Skip to content

Commit

Permalink
use square brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Dec 28, 2023
1 parent c2034ec commit a7aef95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/event-folder-log-entry/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

locals {
destination_uri = "pubsub.googleapis.com/projects/${var.project_id}/topics/${local.topic_name}"
topic_name = element(concat(google_pubsub_topic.main.*.name, [""]), 0)
topic_name = element(concat(google_pubsub_topic.main[*].name, [""]), 0)
}

module "log_export" {
Expand Down
2 changes: 1 addition & 1 deletion modules/event-project-log-entry/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

locals {
destination_uri = "pubsub.googleapis.com/projects/${var.project_id}/topics/${local.topic_name}"
topic_name = element(concat(google_pubsub_topic.main.*.name, [""]), 0)
topic_name = element(concat(google_pubsub_topic.main[*].name, [""]), 0)
}

module "log_export" {
Expand Down

0 comments on commit a7aef95

Please sign in to comment.