Skip to content

Commit

Permalink
add no_wrapper settings in push_config
Browse files Browse the repository at this point in the history
  • Loading branch information
geryonghost committed Nov 19, 2024
1 parent bc66597 commit ce9c80f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
7 changes: 7 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ce9c80f

Please sign in to comment.