Option to disable A record creation in ECS patterns for private LBs #7206
Labels
@aws-cdk/aws-ecs-patterns
Related to ecs-patterns library
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
feature/pattern
Feature requests related to high level L3 pattern libraries
feature-request
A feature should be added or improved.
needs-design
This feature request needs additional design work.
p2
Give customers an option to disable A record creation in ECS pattern when the load balancers are private.
Use Case
Some customers may not want an A record to be created when their ECS/Fargate services are behind private load balancer.
Proposed Solution
Our initial attempt was: #6895, which straight out disabled A record creation whenever the load balancer is private. However, turned out that multiple customers actually rely on such a behavior:
To satisfy both groups of customers, we can potentially add a new boolean flag to all the following interfaces:
aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/base/network-load-balanced-service-base.ts
Line 41 in d7c40c5
aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/base/application-load-balanced-service-base.ts
Line 43 in d7c40c5
aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/base/application-multiple-target-groups-service-base.ts
Line 266 in d7c40c5
aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/base/network-multiple-target-groups-service-base.ts
Line 203 in d7c40c5
The flag can be named as
createARecord
with default valuetrue
to be backward-compatible.Other
Customer ask: #6702
Initial incorrect attempt: #6895
Please +1 if you would like to see this feature implemented!
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: