- Newest
- Most votes
- Most comments
I think the problem is you have 2 target groups.
Adding more than one target group to the array is not supported.
Other issue is with BLUE_GREEN -deployment type being used with ECS
AWS CloudFormation supports blue/green deployments on the AWS Lambda compute platform only.
If you want to simplify this process for yourself you could use CLI tools that will take care of generating the CFN templates for your use-case. I write/maintain/use ECS Compose-X which allows me to do everything in a docker compose syntax. You also could look at the CDK or Copilot. Note that Blue/Green on ECS is something that is fairly restrictive, you are better off (IMHO) setting up ALB / NLB to the service (with healthcheck) + healthcheck at the container level and let CFN deal with rolling back for you. We work that way all the time and this works like a charm.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Thanks. I understand that BLUE_GREEN deployment with ECS is not supported in the AWS CloudFormation at the moment. I think the error message was very confusing. Most people would think from this error message that "ECS deployment group" is supported, and something is wrong with the template. Maybe this message should be fixed for more clarification.