Skip to content

Commit

Permalink
feat: added no_wrapper option in push subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Saloni-Patidar04 committed Dec 2, 2024
1 parent bc66597 commit 88883bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,15 @@ resource "google_pubsub_subscription" "push_subscriptions" {
audience = lookup(each.value, "audience", "")
}
}

dynamic "no_wrapper" {
for_each = (lookup(each.value, "write_metadata", "") != "") ? [true] : []
content {
write_metadata = lookup(each.value, "write_metadata", "")
}
}
}

depends_on = [
google_pubsub_topic.topic,
]
Expand Down

0 comments on commit 88883bc

Please sign in to comment.