(aws-ecs-patterns): (ApplicationLoadBalancedFargateService has publicLoadBalancer set to True by default but should be False) #31344
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-request
A feature should be added or improved.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the feature
ApplicationLoadBalancedFargateService construct creates an internet facing load balancer by default because prop publicLoadBalancer is by default set to true. publicLoadBalancer should be false by default as it is an optional parameter.
Use Case
If ApplicationLoadBalancedFargateService is a construct for everyone to use, why is publicLoadBalancer is by default set to true? This creates an internet facing load balancer by default for all users and risks exposing endpoints to the internet which can cause security issues. Even if users define the VPC prop, an internet facing load balancer is created. The default value for publicLoadBalancer should be set to false to allow users to create more secure, internal load balancers.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.156.0
Environment details (OS name and version, etc.)
All
The text was updated successfully, but these errors were encountered: