cn-terraform / terraform-aws-ecs-fargate

AWS ECS Fargate Terraform Module
https://registry.terraform.io/modules/cn-terraform/ecs-fargate
Apache License 2.0
87 stars 57 forks source link

Changing type of LB from internet-facing to internal results in DuplicateLoadBalancerNam error #13

Closed advissor closed 3 years ago

advissor commented 4 years ago

When trying to modify the type of LB from internet-facing to internal, step creating a new LB new lb fails

Error: Error creating application Load Balancer: DuplicateLoadBalancerName: A load balancer with the same name "xxxxx-lb' exists, but with different settings status code: 400

So we had to remove it manually via console

Looks like it tries to create an LB too fast before destruction is complete

jnonino commented 3 years ago

Can you try in version 2.0.22 Please reopen this issue if you continue experiencing problems.