If I get this right, lb_listener only accepts forward as valid action type. https://www.terraform.io/docs/providers/aws/r/lb_listener.html How do I configure a listener to redirect HTTP to HTTPS?
i.e. this is the desired state in elb listener:
If I get this right, lb_listener only accepts forward as valid action type. https://www.terraform.io/docs/providers/aws/r/lb_listener.html How do I configure a listener to redirect HTTP to HTTPS?
i.e. this is the desired state in elb listener:
Copyright © 2021 Jogjafile Inc.

This functionality was added to the AWS provider and released with 1.33.0.
Here's how you'd set the default action on a load balancer listener with the
aws_lb_listenerresource:You can also add redirects and fixed type responses with individual load balancer listener rules in the
aws_lb_listener_ruleresource: