aws-ecs-patterns: adding loadbalancerName fails to update existing ApplicationLoadBalancedFargateService
See original GitHub issueAdding a loadBalancerName to an existing ApplicationLoadBalancedFargateService
fails to deploy name change.
loadBalancerName was added in 1.108.0
Reproduction Steps
Create an ApplicationLoadBalancedFargateService
without a loadBalancerName
using the ecs pattern.
Deploy it.
Update the cdk to add a loadBalancerName
The only change is
+ loadBalancerName: name,
What did you expect to happen?
I expected the load balancer name to change but I got an error instead.
What actually happened?
Resource handler returned message: "The following target groups cannot be associated with more than one load balancer: arn:aws:elasticloadbalancing:us-west-2:xxxxxxxxxxxx:targetgroup/EcsSe-EcsSe-1IC22F89LVS79/d6ec3e00e48b95c5 (Service: ElasticLoadBalanc
ingV2, Status Code: 400, Request ID: 3210ddb8-700d-448f-ad20-fff37d3a7b0c, Extended Request ID: null)" (RequestToken: 6e5ebe88-d842-db66-ff87-6c7d10bbc542, HandlerErrorCode: ServiceLimitExceeded)
Environment
- CDK CLI Version : 1.107.0 (build 52c4434)
- Framework Version: 1.108.0
- Node.js Version: v12.22.1
- OS : both macos and linux fail
- Language (Version): Typescript 4.3.2
Other
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top Results From Across the Web
class ApplicationLoadBalancedFargateService (construct)
A Fargate service running on an ECS cluster fronted by an application load ... uses the existing services desired count when updating an...
Read more >awsecspatterns - Go Packages
A Fargate service running on an ECS cluster fronted by an application load balancer. Example: var cluster cluster loadBalancedFargateService := ecsPatterns.
Read more >How to specify human readable name for ECS Task Definition ...
ApplicationLoadBalancedFargateService (this, `service-${envName}`, ... envName}`, loadBalancerName: `svc-alb-${this. ... Post as a guest.
Read more >Application Load Balanced Fargate Service example in AWS ...
Create an Application Load Balanced Fargate Service in AWS CDK… ... ECS tasks automatically in CloudFormation after a threshold of failed ...
Read more >@aws-cdk/aws-elasticloadbalancingv2 - Package Manager
... Add Load Balancer name to ApplicationLoadBalancedFargateService props ... aws-ecs-patterns: allow ScheduledTaskBase be created in a DISABLED state ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is still an issue and shouldn’t be closed.
Looks like CloudFormation is aware of this, and they have an issue open on it https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/780 Feel free to go up-vote that one to help them prioritize!