Skip to content

fix: Add ALB listener ARNs to outputs #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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