Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 9644e05

Browse files
fix: added additional outputs to multi runner module. (#3283)
* fix: added additional outptus to multi runner module. * docs: auto update terraform docs * fix: addressed comments. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 9fcf33a commit 9644e05

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Diff for: modules/multi-runner/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,5 @@ module "multi-runner" {
179179
| <a name="output_runners"></a> [runners](#output\_runners) | n/a |
180180
| <a name="output_ssm_parameters"></a> [ssm\_parameters](#output\_ssm\_parameters) | n/a |
181181
| <a name="output_webhook"></a> [webhook](#output\_webhook) | n/a |
182+
| <a name="output_workflow_job_queue"></a> [workflow\_job\_queue](#output\_workflow\_job\_queue) | Workflow job queue for multi runners. |
182183
<!-- END_TF_DOCS -->

Diff for: modules/multi-runner/outputs.tf

+7
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,10 @@ output "webhook" {
4242
output "ssm_parameters" {
4343
value = module.ssm.parameters
4444
}
45+
46+
output "queues" {
47+
description = "SQS queues."
48+
value = {
49+
webhook_workflow_job_queue = try(aws_sqs_queue.webhook_events_workflow_job_queue[*].arn, "")
50+
}
51+
}

Diff for: outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ output "queues" {
5050
value = {
5151
build_queue_arn = aws_sqs_queue.queued_builds.arn
5252
build_queue_dlq_arn = var.redrive_build_queue.enabled ? aws_sqs_queue.queued_builds_dlq[0].arn : null
53-
webhook_workflow_job_queue = try(aws_sqs_queue.webhook_events_workflow_job_queue[0], null) != null ? aws_sqs_queue.webhook_events_workflow_job_queue[0].arn : ""
53+
webhook_workflow_job_queue = try(aws_sqs_queue.webhook_events_workflow_job_queue[*].arn, "")
5454
}
5555
}

0 commit comments

Comments
 (0)