diff --git a/README.md b/README.md index e74e1eb..2d75b57 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,8 @@ preconfigured solution for seamless scalability and high availability." | Name | Description | |------|-------------| +| [aws\_lb\_listener\_arn](#output\_aws\_lb\_listener\_arn) | ARN of the ALB main listener. | +| [aws\_lb\_test\_listener\_arn](#output\_aws\_lb\_test\_listener\_arn) | ARN of the ALB test listener. | | [blue\_target\_group\_arn](#output\_blue\_target\_group\_arn) | ARN of the blue target group. | | [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | ARN of the CloudWatch log group. | | [codedeploy\_app\_name](#output\_codedeploy\_app\_name) | CodeDeploy application name. | diff --git a/outputs.tf b/outputs.tf index b99b065..2d98871 100644 --- a/outputs.tf +++ b/outputs.tf @@ -26,6 +26,17 @@ output "green_target_group_arn" { value = aws_lb_target_group.main["green"].arn } +## LOAD BALANCER LISTENER +output "aws_lb_listener_arn" { + description = "ARN of the ALB main listener." + value = try(aws_lb_listener.main[0].arn, null) +} + +output "aws_lb_test_listener_arn" { + description = "ARN of the ALB test listener." + value = try(aws_lb_listener.test_listener[0].arn, null) +} + ## TASK DEFINITION output "task_definition_arn" { description = "ARN of the task definition."