question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aws-ecs-patterns: adding loadbalancerName fails to update existing ApplicationLoadBalancedFargateService

See original GitHub issue

Adding 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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
suavelizardcommented, Nov 20, 2022

This is still an issue and shouldn’t be closed.

1reaction
madeline-kcommented, Jun 28, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found