Skip to content

Commit

Permalink
feat: allow the module to control retain_acked_messages (#36)
Browse files Browse the repository at this point in the history
* allow the module to control retain_acked_messages

* fix syntax error cause by bad update with master

Co-authored-by: Morgante Pell <[email protected]>
  • Loading branch information
bluehawk27 and morgante authored Feb 2, 2021
1 parent 7a24e5c commit 8d44bfd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ resource "google_pubsub_subscription" "push_subscriptions" {
"message_retention_duration",
null,
)
retain_acked_messages = lookup(
var.push_subscriptions[count.index],
"retain_acked_messages",
null,
)
filter = lookup(
var.push_subscriptions[count.index],
"filter",
Expand Down Expand Up @@ -180,6 +185,11 @@ resource "google_pubsub_subscription" "pull_subscriptions" {
"message_retention_duration",
null,
)
retain_acked_messages = lookup(
var.pull_subscriptions[count.index],
"retain_acked_messages",
null,
)
filter = lookup(
var.pull_subscriptions[count.index],
"filter",
Expand Down

0 comments on commit 8d44bfd

Please sign in to comment.