From 88883bc12c8833be898ac24c2dfb04ee5f0b5408 Mon Sep 17 00:00:00 2001 From: "salonipatidar@google.com" Date: Tue, 3 Dec 2024 00:30:30 +0530 Subject: [PATCH] feat: added no_wrapper option in push subscription --- main.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.tf b/main.tf index 45755f7..479b80f 100644 --- a/main.tf +++ b/main.tf @@ -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, ]