add support for topic message duration (#732)

This commit is contained in:
Ludovico Magnocavallo
2022-07-12 09:23:23 +02:00
committed by GitHub
parent 1abfdacd56
commit d9ea825ea5
3 changed files with 18 additions and 10 deletions

View File

@@ -36,10 +36,11 @@ locals {
}
resource "google_pubsub_topic" "default" {
project = var.project_id
name = var.name
kms_key_name = var.kms_key
labels = var.labels
project = var.project_id
name = var.name
kms_key_name = var.kms_key
labels = var.labels
message_retention_duration = var.message_retention_duration
dynamic "message_storage_policy" {
for_each = length(var.regions) > 0 ? [var.regions] : []