I am creating an Application Load Balancer and I am setting default_target_group_enabled = false. However, when trying to apply my changes, Terraform outputs:
Error: creating ELBv2 Listener (arn:aws:elasticloadbalancing:us-east-1:xxx:loadbalancer/app/my-alb/f3a3728915895e61): ValidationError: A target group ARN must be specified
Checking the code it seems that a Target Group is required by the https listener.
Expected Behavior
I expected to create an Application Load Balancer without a Target Group. I didn't want to create a TG to make the https listener to work.
Describe the Bug
I am creating an Application Load Balancer and I am setting
default_target_group_enabled = false
. However, when trying to apply my changes, Terraform outputs:Checking the code it seems that a Target Group is required by the https listener.
Expected Behavior
I expected to create an Application Load Balancer without a Target Group. I didn't want to create a TG to make the https listener to work.
Additional Context
I am creating an ALB for redirect purposes.
Terraform version: