[elasticloadbalancingv2] load balancers by lookup #11088
Labels
@aws-cdk/aws-elasticloadbalancingv2
Related to Amazon Elastic Load Balancing V2
effort/large
Large work item – several weeks of effort
feature-request
A feature should be added or improved.
p2
I'd like my constructs to discover load balancers and listeners by tags, ports, and protocols.
Use Case
We share load balancers on shared ECS clusters between several CDK-based services for cost-reduction reasons. Because of this, we often need to import the load balancer and listener configuration. Right now we're using
.from*Attributes()
method, but this results in a lot of copy-pasting of attribute values. If we could look up a load balancer or listener by tags, then we could replace the copy-pasting with a tag-based discovery method.Proposed Solution
We could implement a context provider for load balancers and allow the user to look up values the same way as
Vpc.fromLookup()
.Other
I'm working on a PR for this right now. I'll mention this issue when I've got the PR up.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: