From a8b1645bea0d5ef05f5eb65651eeea99bcf49ade Mon Sep 17 00:00:00 2001 From: GuptaNavdeep1983 Date: Mon, 14 Nov 2022 19:05:52 +0530 Subject: [PATCH] fix: Updated the fifo flag for deadletter queue. (#2641) * fix: updated the fifo flag for dl queue. * fix: formatting. * fix: variable name. Co-authored-by: navdeepg2021 --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 6bf8eb06..f76b689d 100644 --- a/main.tf +++ b/main.tf @@ -101,13 +101,13 @@ resource "aws_sqs_queue_policy" "build_queue_dlq_policy" { resource "aws_sqs_queue" "queued_builds_dlq" { count = var.redrive_build_queue.enabled ? 1 : 0 - name = "${var.prefix}-queued-builds_dead_letter" + name = "${var.prefix}-queued-builds_dead_letter${var.fifo_build_queue ? ".fifo" : ""}" sqs_managed_sse_enabled = var.queue_encryption.sqs_managed_sse_enabled kms_master_key_id = var.queue_encryption.kms_master_key_id kms_data_key_reuse_period_seconds = var.queue_encryption.kms_data_key_reuse_period_seconds - - tags = var.tags + fifo_queue = var.fifo_build_queue + tags = var.tags } module "ssm" {