In this recipe, we will create a CodeBuild project, which will build the image and push it to ECR using BuildSpec.yml.
We will be carrying out following operations to create a CodeBuild project CB-ECSAPP:
- Create a CodeBuild project with the name CB-ECSAPP and integrate it with the CodeCommit.
- While selecting build environment, we need to select Ubuntu OS and runtime as Docker because while in the build process, the docker image will get build and for that, the build environment should have a docker client installed.
Let's go ahead and create a build project for the build stage of pipeline.