Open andrewmarcus opened 7 years ago
yadda can be updated to handle that case.
Essentially the issue is that once a service is created, its load balancer attributes cannot be changed (including changing the target group ARN). This is a limitation in the AWS SDK. What yadda can do is delete the existing service and then create a new service attached to the new target group arn.
This will still result in a service outage, but should be faster to resolve than forcing the user to themselves go to the ECS console, delete the service, and then redeploy.
As this will result in a service outage, I'll also add a guard step to ask for the users permission to delete the service.
Sorry. Removing myself from this assignment due to limited capability to test and prototype this enhancement on AWS.
When updating the target group, Cloudformation blows away the old target group and creates a new one. That's a known issue and is annoying because the app becomes unavailable until you redeploy it.
However, a bug in Yadda prevents it from redeploying. Even when the Manifest is updated to point to the new TargetGroupARN, the old one is still used resulting in an error like the following:
Steps to replicate: