From 8d44bfddfa5070c50c68c033f173245ab55feed4 Mon Sep 17 00:00:00 2001 From: Alberto Villacorta Date: Mon, 1 Feb 2021 21:05:40 -0800 Subject: [PATCH] feat: allow the module to control retain_acked_messages (#36) * allow the module to control retain_acked_messages * fix syntax error cause by bad update with master Co-authored-by: Morgante Pell --- main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.tf b/main.tf index cd50d15..64ac44d 100644 --- a/main.tf +++ b/main.tf @@ -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", @@ -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",