[ecs-patterns] ApplicationLoadBalancedEc2Service with httpToHttps mechanics #8775
Labels
@aws-cdk/aws-ecs-patterns
Related to ecs-patterns library
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
In the vein of having useful patterns for every day problems, i wonder if it wouldnt be useful to have a property like redirectToHttps: true|false in the properties of ApplicationLoadBalancedEc2Service.
Use Case
I think that most of the usage patterns of ApplicationLoadBalancedEc2Service is having a internet facing LoadBalancer for something like web applications. For that, you definitely need a redirect http to https feature.
Proposed Solution
enhance ApplicationLoadBalancedEc2Service with the mentioned property like this:
With that property set, the ApplicationLoadBalancedEc2Service would also create a HTTP Listener (besides the HTTPS listener) with a RedirectAction ascociated which looks basically like this:
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: