Skip to content

Commit 8b6b082

Browse files
committed
feat: listener rule configuration for alb listeners
1 parent a721e2a commit 8b6b082

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ Terraform module to deploy production-ready applications and services on an exis
5959
|------|-------------|
6060
| <a name="output_alb_arn"></a> [alb\_arn](#output\_alb\_arn) | ARN of the load balancer. |
6161
| <a name="output_alb_dns_name"></a> [alb\_dns\_name](#output\_alb\_dns\_name) | DNS name of the load balancer. |
62+
| <a name="output_alb_listener_rules_arns"></a> [alb\_listener\_rules\_arns](#output\_alb\_listener\_rules\_arns) | ARNs of the Listener Rules. |
63+
| <a name="output_alb_listener_rules_ids"></a> [alb\_listener\_rules\_ids](#output\_alb\_listener\_rules\_ids) | Identifiers of the Listener Rules. |
6264
| <a name="output_alb_listeners_arns"></a> [alb\_listeners\_arns](#output\_alb\_listeners\_arns) | ARNs of the Listeners. |
6365
| <a name="output_alb_listeners_ids"></a> [alb\_listeners\_ids](#output\_alb\_listeners\_ids) | Identifiers of the Listeners. |
6466
| <a name="output_alb_target_groups_arns"></a> [alb\_target\_groups\_arns](#output\_alb\_target\_groups\_arns) | ARNs of the Target Groups. |

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ module "alb" {
252252
)
253253
}
254254

255+
listener_rules = try(var.load_balancer.listener_rules, {})
256+
255257
tags = try(var.load_balancer.tags, {})
256258
}
257259

outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ output "alb_listeners_arns" {
7474
value = try(module.alb[0].listeners_arns, null)
7575
}
7676

77+
output "alb_listener_rules_ids" {
78+
description = "Identifiers of the Listener Rules."
79+
value = try(module.alb[0].listener_rules_ids, null)
80+
}
81+
82+
output "alb_listener_rules_arns" {
83+
description = "ARNs of the Listener Rules."
84+
value = try(module.alb[0].listener_rules_arns, null)
85+
}
86+
7787
################################################################################
7888
# Capacity Provider
7989
################################################################################

0 commit comments

Comments
 (0)