- Newest
- Most votes
- Most comments
Hello,
Hope you are doing good.
I understand that you are looking for a way to keep the task definition in sync with CloudFormation when performing Blue/Green deployment for ECS service. To achieve this use case, CodeDeploy supports performing Blue/Green deployment via CloudFormation as shown here : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/blue-green.html#blue-green-resources
CloudFormation uses Transform to perform deployment and it checks changes to the resource AWS::ECS::TaskDefinition and AWS::ECS::TaskSet to perform a new deployment.
Can you please confirm if you are using this method to perform and manage Blue/Green deployment for ECS ? If yes, then I would request you to please open a new support case with AWS and we would be able to further troubleshoot the issue you are facing.
Relevant content
- Accepted Answerasked 2 months ago
- Accepted Answerasked 20 days ago
- Accepted Answerasked 8 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Thanks for the response - no I am not using CloudFormation to perform the blue/green deployment, as I was having trouble getting it working with CodePipeline and/or AWS CLI. My end goal was to trigger deployments to AWS from our on-site continuous build environment. I was thinking the build tool could push a new image to ECR, and either do a blue/green deployment with a create-deployment command, or have CodePipeline automatically pick it up and initiate the deployment. I was able to accomplish both of these workflows by using CF to create an ECS Service with CODE_DEPLOY as the deployment controller. As I was reading the documentation on blue/green deployments initiated by CloudFormation, it sounded like I would have to manually update the CloudFormation template to swap out the TaskSet and then do a stack update. Maybe I am misreading something about the way blue/green deployments work with CloudFormation?