aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(ecs-patterns): Add ability to import ALB and Listeners to use in ApplicationLoadBalancedFargateService

Open peterwoodworth opened this issue 5 years ago • 11 comments

ApplicationLoadBalancedFargateService will automatically add a listener and target group in the constructor. We should have the ability to use existing listeners when using this construct.

Use Case

Multiple customers have supplied use cases, see #13759


This is a :rocket: Feature Request

peterwoodworth avatar Aug 04 '21 20:08 peterwoodworth

Any updates on this issue?

stoicad avatar Dec 21 '21 06:12 stoicad

Any updates on the issue, would be very helpful

Benzer1406 avatar Jan 03 '22 22:01 Benzer1406

Are there any updates here? We really need this for our use case!

LautaroNavarro avatar Jan 03 '22 22:01 LautaroNavarro

I have the same problem, any update?

fede9612 avatar Jan 03 '22 22:01 fede9612

Hey all,

We don't have an ETA on this yet, but we do welcome community contributions! Please check out CONTRIBUTING.md for info on how to get started if you're interested 🙂

peterwoodworth avatar Jan 06 '22 00:01 peterwoodworth

I've been digging into this for the past week or so and I don't think this is currently possible with how ALBs and Listeners are set up.

Looking at the .addListener method, it does not accept an ApplicationListener but instead creates a new one for you. There also isn't a prop where I can add a listener.

On the flip side I can create a Listener, but the only way to attach it is with the loadBalancer prop which we technically won't know yet because the load balancer isn't created until the CDK is executed. 🎉

Exploring the LOE for the following options:

Currently looking into the application-listener class to see if we can add a method to pass in a load balancer to attach the listener to.

We could add an optional prop applicationListener to be passed into the ApplicationLoadbalancer as it looks empty by default.

Of course if I'm missing something here please let me know

michaeldrey avatar Aug 16 '22 06:08 michaeldrey

Any update about this ?

Samia2Aimas avatar Nov 08 '22 08:11 Samia2Aimas

Hello, do you have any updates ? Thank you a lot

NicolasRoehm avatar Jan 18 '23 18:01 NicolasRoehm

Also a use case we're interested in - is this still in consideration?

ethiril avatar Feb 13 '23 09:02 ethiril

Hello, is this something that's still being considered? Thanks.

mnferoz avatar Aug 06 '23 18:08 mnferoz

This has been a p1 for almost four years...

BwL1289 avatar Apr 23 '25 22:04 BwL1289