Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #134 - Provides guard against referencing aws_lb_target_group.d…
…efault when disabled * disables aws_lb_listener.http_forward when default_target_group is not enabled * disables aws_lb_listener.http_redirect when default_target_group is disabled unless default http response exists * disables aws_lb_listener.https when default_target_group is disabled unless default secure https response exists Fixes this Validation error when default_target_group_enabled == 0 : ``` module.alb.aws_lb_listener.http_forward[0]: Creating... ╷ │ Error: creating ELBv2 Listener (arn:aws:elasticloadbalancing:...:...:loadbalancer/...): ValidationError: A target group ARN must be specified │ status code: 400, request id: 7cf9d727-fc77-4d32-a160-cbd175e16e20 │ │ with module.alb.aws_lb_listener.http_forward[0], │ on .terraform/modules/alb/main.tf line 150, in resource "aws_lb_listener" "http_forward": │ 150: resource "aws_lb_listener" "http_forward" { ```
- Loading branch information