Skip to content

Commit c310330

Browse files
authored
feat: add enable_message_ordering attribute for push subscription (#195)
1 parent 834f204 commit c310330

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module "pubsub" {
3434
maximum_backoff = "600s" // optional
3535
minimum_backoff = "300s" // optional
3636
filter = "attributes.domain = \"com\"" // optional
37+
enable_message_ordering = true // optional
3738
}
3839
]
3940
pull_subscriptions = [

‎main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ resource "google_pubsub_subscription" "push_subscriptions" {
194194
"filter",
195195
null,
196196
)
197+
enable_message_ordering = lookup(
198+
each.value,
199+
"enable_message_ordering",
200+
null,
201+
)
197202
dynamic "expiration_policy" {
198203
// check if the 'expiration_policy' key exists, if yes, return a list containing it.
199204
for_each = contains(keys(each.value), "expiration_policy") ? [each.value.expiration_policy] : []

0 commit comments

Comments
 (0)