diff --git a/modules/multi-runner/queues.tf b/modules/multi-runner/queues.tf index a7a8100ece..cc53e36630 100644 --- a/modules/multi-runner/queues.tf +++ b/modules/multi-runner/queues.tf @@ -26,7 +26,6 @@ data "aws_iam_policy_document" "deny_unsecure_transport" { } } - resource "aws_sqs_queue" "queued_builds" { for_each = var.multi_runner_config name = "${var.prefix}-${each.key}-queued-builds${each.value.fifo ? ".fifo" : ""}" @@ -71,6 +70,12 @@ resource "aws_sqs_queue_policy" "build_queue_dlq_policy" { policy = data.aws_iam_policy_document.deny_unsecure_transport.json } +resource "aws_sqs_queue_policy" "webhook_events_workflow_job_queue_policy" { + count = var.enable_workflow_job_events_queue ? 1 : 0 + queue_url = aws_sqs_queue.webhook_events_workflow_job_queue[0].id + policy = data.aws_iam_policy_document.deny_unsecure_transport.json +} + resource "aws_sqs_queue" "webhook_events_workflow_job_queue" { count = var.enable_workflow_job_events_queue ? 1 : 0 name = "${var.prefix}-webhook_events_workflow_job_queue"