aws_ecs_patterns: default listener rule cannot be changed #30412
Labels
@aws-cdk/aws-ecs-patterns
Related to ecs-patterns library
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
I have a
my_service
instantiated fromaws_ecs_patterns.ApplicationLoadBalancedFargateService()
.I need a custom listener rule with a host header condition so that all other traffic will not be forwarded to the container. This can be added without issue, but the default listener rule does not change despite explicitly defining it, rendering the added custom rule pointless.
Expected Behavior
Default listener rule returns HTTP 503 Service Unavailable.
Current Behavior
Default listener rule is forwarding to target group
my_service.target_group
.Reproduction Steps
my_service
is instantiated fromaws_ecs_patterns.ApplicationLoadBalancedFargateService()
.A custom listener rule is added:
An attempt to change the default listener rule:
Possible Solution
No response
Additional Information/Context
cdk synth
sample output:CDK CLI Version
2.144.0 (build 5fb15bc)
Framework Version
No response
Node.js Version
v20.11.1
OS
Ubuntu 22.04.4 LTS
Language
Python
Language Version
3.10.12
Other information
No response
The text was updated successfully, but these errors were encountered: