Skip to content

Commit ab0d52f

Browse files
committed
Add ALB listener ARNs to outputs
1 parent 73ff07c commit ab0d52f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ preconfigured solution for seamless scalability and high availability."
125125

126126
| Name | Description |
127127
|------|-------------|
128+
| <a name="output_aws_lb_listener_arn"></a> [aws\_lb\_listener\_arn](#output\_aws\_lb\_listener\_arn) | ARN of the ALB main listener. |
129+
| <a name="output_aws_lb_test_listener_arn"></a> [aws\_lb\_test\_listener\_arn](#output\_aws\_lb\_test\_listener\_arn) | ARN of the ALB test listener. |
128130
| <a name="output_blue_target_group_arn"></a> [blue\_target\_group\_arn](#output\_blue\_target\_group\_arn) | ARN of the blue target group. |
129131
| <a name="output_cloudwatch_log_group_arn"></a> [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | ARN of the CloudWatch log group. |
130132
| <a name="output_codedeploy_app_name"></a> [codedeploy\_app\_name](#output\_codedeploy\_app\_name) | CodeDeploy application name. |

outputs.tf

+11
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ output "green_target_group_arn" {
2626
value = aws_lb_target_group.main["green"].arn
2727
}
2828

29+
## LOAD BALANCER LISTENER
30+
output "aws_lb_listener_arn" {
31+
description = "ARN of the ALB main listener."
32+
value = try(aws_lb_listener.main[0].arn, null)
33+
}
34+
35+
output "aws_lb_test_listener_arn" {
36+
description = "ARN of the ALB test listener."
37+
value = try(aws_lb_listener.test_listener[0].arn, null)
38+
}
39+
2940
## TASK DEFINITION
3041
output "task_definition_arn" {
3142
description = "ARN of the task definition."

0 commit comments

Comments
 (0)