Open lurnt opened 2 years ago
hi @lurnt I think you need to read this docs. 👀 https://docs.aws.amazon.com/elasticloadbalancing/latest/network/application-load-balancer-target.html#register-application-load-balancer-target
For Protocol, only TCP is allowed. Select the Port for your target group.
This target group port must match the listener port of the Application Load Balancer. Alternatively,
you can add or edit the listener port on the Application Load Balancer to match this port.
So you get that error message?!
@neilkuan I understand that only TCP is allowed, I am not saying this bug is unexpected... This issue is to add support for other protocols, namely TLS termination
@lurnt it seems to me this is a feature that the service itself is lacking rather than the CDK. The error message you've provided is from CloudFormation, which is likely originating from the service. I don't think there's anything CDK or CloudFormation can do without this being specifically supported by AWS ELB
@peterwoodworth Is there any way to route this request to their team?
Describe the feature
When trying to utilize NLB's feature of having ALB target types, I would like ALB Targets on NLB Listeners to have TLS termination.
Trying to synthesize and deploy the above will result in the following error:
Use Case
I'm building an ECS/Fargate service with the following requirements:
With all these requirements, I have ended up utilizing the NLB -> ALB solution provided by AWS recently. However, TLS termination is seemingly impossible. Even in the linked blog post, there is a caveat that NLB listeners on ALB targets cannot have TLS. Their workaround is to use HTTPS protocol, but even that does not work!! HTTPS is not a supported protocol on NLB Listeners!!!. So this feature release is misleading, TLS termination is not possible at all with this NLB -> ALB approach.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.14.0
Environment details (OS name and version, etc.)
AL2