🚀 Enhancements
Fixes #134 - Does not create http_forward when aws_lb_target_group.default is disabled @spazm (#149)
## WhatFixes #134 - Does not create http_forward when aws_lb_target_group.default is disabled
- disables aws_lb_listener.http_forward when default_target_group is not enabled
- target_group is required when type is 'redirect'
Why
See #134. 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-deadbeefcafe
│
│ 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" {
references
closes #134
🐛 Bug Fixes
Fixes #134 - Does not create http_forward when aws_lb_target_group.default is disabled @spazm (#149)
## WhatFixes #134 - Does not create http_forward when aws_lb_target_group.default is disabled
- disables aws_lb_listener.http_forward when default_target_group is not enabled
- target_group is required when type is 'redirect'
Why
See #134. 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-deadbeefcafe
│
│ 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" {
references
closes #134