Skip to content

Commit

Permalink
Add ALB listener ARNs to outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ic3w0lf committed Oct 16, 2023
1 parent 73ff07c commit ab0d52f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ preconfigured solution for seamless scalability and high availability."

| Name | Description |
|------|-------------|
| <a name="output_aws_lb_listener_arn"></a> [aws\_lb\_listener\_arn](#output\_aws\_lb\_listener\_arn) | ARN of the ALB main listener. |
| <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. |
| <a name="output_blue_target_group_arn"></a> [blue\_target\_group\_arn](#output\_blue\_target\_group\_arn) | ARN of the blue target group. |
| <a name="output_cloudwatch_log_group_arn"></a> [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | ARN of the CloudWatch log group. |
| <a name="output_codedeploy_app_name"></a> [codedeploy\_app\_name](#output\_codedeploy\_app\_name) | CodeDeploy application name. |
Expand Down
11 changes: 11 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit ab0d52f

Please sign in to comment.