Skip to content

Commit

Permalink
fix: added additional outputs to multi runner module. (#3283)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
GuptaNavdeep1983 and github-actions[bot] authored May 23, 2023
1 parent 9fcf33a commit 9644e05
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/multi-runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,5 @@ module "multi-runner" {
| <a name="output_runners"></a> [runners](#output\_runners) | n/a |
| <a name="output_ssm_parameters"></a> [ssm\_parameters](#output\_ssm\_parameters) | n/a |
| <a name="output_webhook"></a> [webhook](#output\_webhook) | n/a |
| <a name="output_workflow_job_queue"></a> [workflow\_job\_queue](#output\_workflow\_job\_queue) | Workflow job queue for multi runners. |
<!-- END_TF_DOCS -->
7 changes: 7 additions & 0 deletions modules/multi-runner/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ output "webhook" {
output "ssm_parameters" {
value = module.ssm.parameters
}

output "queues" {
description = "SQS queues."
value = {
webhook_workflow_job_queue = try(aws_sqs_queue.webhook_events_workflow_job_queue[*].arn, "")
}
}
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ output "queues" {
value = {
build_queue_arn = aws_sqs_queue.queued_builds.arn
build_queue_dlq_arn = var.redrive_build_queue.enabled ? aws_sqs_queue.queued_builds_dlq[0].arn : null
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 : ""
webhook_workflow_job_queue = try(aws_sqs_queue.webhook_events_workflow_job_queue[*].arn, "")
}
}

0 comments on commit 9644e05

Please sign in to comment.