-
Notifications
You must be signed in to change notification settings - Fork 188
Description
What I was trying:
I created an ECS cluster, for service I chose, "EC2-type" launch type with "Rolling Update" deployment strategy. I was able to create a Codebuild application successfully for the same. While creating the Codedeploy app I got this error, "Deployment group's ECS service must be configured for a CODE_DEPLOY deployment control. I intend to use Codepipeline with Codebuild project as the build step and Codedeploy project as the deployment step.
What I don't want to try:
I am aware that I can use "Codepipeline with Codebuild as the build step and ECS as the deployment step". This is suggested as per AWS documentation for Rolling Update. Please read below for "why I don't want to use this".
Steps I followed:
- I created an ECS cluster, for service I chose EC2-type launch type with Rolling Update deployment strategy.
- For CI/CD I created a project in Codebuild to build docker images and push them to ECR
- But while creating Codedeploy application I got this error, "Deployment group's ECS service must be configured for a CODE_DEPLOY deployment controller."
- Once these both are created then, will create Codepipeline project using both of them for the build and deploy step.
What I want to achieve:
I want to use Codepipeline with Codebuild project as the build step and Codedeploy project as the deployment step, similar to the Blue-Green deployment strategy.
My end goal:
Once I am able to use Codepipeline with Codebuild as the build step and Codedeploy as the deployment step. I will then replace Codepipeline with Jenkins and will use Codebuild and Codedeploy plugins for Jenkins. I use Jenkins for all of my projects, so I want to avoid anything else.