To create a build project, which will be integrated in the pipeline, we have to perform the following steps:
- Go to the AWS console, and click on CodeBuild, which lies in the Developer Tools section.
- After that, click on Create Project and fill or select the following details:
- Project name: CB-ECSAPP
- Source provider: AWS CodeCommit
- Repository: CC-ECSAPP
- Environment image: Use an image managed by AWS CodeBuild
- OS: Ubuntu
- Runtime: Docker
- Version: aws/codebuild/docker:1.12.1
- Build specification: Use the buildspec.yml in the source code root directory
- Artifact Type: None (cause it's already mentioned in BuildSpec.yml)
- Service Role: Create a service role in your account (later, you have to attach the EC2 Container Registry access ...