I have an existing service setup. 1 ECS cluster stack, 1 ECS Service stack(all resources including ALB are created in it), 1 Fargate Service stack (Default 'PublicListener' with default rule was created as a part of this) which is created using AWS cdk L3 construct(ApplicationLoadbalancingFargateService).
I have a use case to deploy 1 more fargate service in new stack but using the same above ECS Service (same ALB and resources). I found out that we cannot use 2 Fargate services together that are created using L3 constructs. Hence, I’m using L2 construct(Fargate service) for the new service.
Now, I want to assign the new service to the default rule created in the existing service. How can I do that? While testing, I was able to do it through console but how can I do it through AWS CDK. I’m using typescript.