Continuous Integration (CI) and Continuous Deployment (CD) Workflow
In this tutorial, we will create an end-to-end Continuous Integration (CI) and Continuous Deployment (CD) pipeline, using AWS CodePipeline and Amazon ECS.
Before you start this tutorial, you must have a few resources available to create the CD pipeline. We have mostly covered all the resources in the previous sections.
Note
You should create all the required resources within the same AWS Region.
The prerequisites are as follows:
- A source control repository: AWS CodeCommit is used with Dockerfile and an application source in this tutorial
- A Docker image repository: Amazon ECR is used containing an image that will be built from Dockerfile and an application source
- An Amazon ECS task definition: To refer the Docker image that is hosted in image repository
- An Amazon ECS cluster: To run a task definition service
Once you have finished with the prerequisites, then proceed with the tutorial to create the AWS CodePipeline.