Skip to content

Commit

Permalink
feat: add enable_message_ordering attribute for push subscription (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuji authored Jun 27, 2024
1 parent 834f204 commit c310330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module "pubsub" {
maximum_backoff = "600s" // optional
minimum_backoff = "300s" // optional
filter = "attributes.domain = \"com\"" // optional
enable_message_ordering = true // optional
}
]
pull_subscriptions = [
Expand Down
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ resource "google_pubsub_subscription" "push_subscriptions" {
"filter",
null,
)
enable_message_ordering = lookup(
each.value,
"enable_message_ordering",
null,
)
dynamic "expiration_policy" {
// check if the 'expiration_policy' key exists, if yes, return a list containing it.
for_each = contains(keys(each.value), "expiration_policy") ? [each.value.expiration_policy] : []
Expand Down

0 comments on commit c310330

Please sign in to comment.