Open
Description
Describe the feature
Similar to #13759 and #15894, redirect_http=True
should not unconditionally create an HTTP listener.
It should be possible to pass in an existing http listener.
Use Case
Allow passing in an existing http listener when using redirect_http=True
. If you've already deployed your stack and try to use redirect_http=True
, you'll get the following error:
Resource handler returned message: "A listener already exists on this port for this load balancer 'arn:aws:elasticloadbalancing:<redacted>' (Service: ElasticLoadBalancingV2, Status Code: 400, Request ID: 18a9f3bd-a9a2-425c-98ab-2840249dff81) (SDK Attempt Count: 1)" (RequestToken: 376b999e-d4a9-761e-408a-a9e551765032, HandlerErrorCode: AlreadyExists)
Proposed Solution
Allow passing in an existing http listener when using redirect_http=True
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.180.0
Environment details (OS name and version, etc.)
MacOS