diff --git a/README.md b/README.md index e5333f1..adfe245 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ module "pubsub" { minimum_backoff = "300s" // optional filter = "attributes.domain = \"com\"" // optional enable_message_ordering = true // optional + no_wrapper = false // optional + write_metadata = false // optional } ] pull_subscriptions = [ diff --git a/main.tf b/main.tf index 45755f7..fa36ab6 100644 --- a/main.tf +++ b/main.tf @@ -232,6 +232,13 @@ resource "google_pubsub_subscription" "push_subscriptions" { x-goog-version = lookup(each.value, "x-goog-version", "v1") } + dynamic "no_wrapper" { + for_each = (lookup(each.value, "no_wrapper", true) ? [true] : []) + content { + write_metadata = lookup(each.value, "write_metadata", true) + } + } + dynamic "oidc_token" { for_each = (lookup(each.value, "oidc_service_account_email", "") != "") ? [true] : [] content {