Executing the pipeline
We need to make a couple of changes to the source code before we execute the pipeline specific to our environment:
- We need to create a
ecs-appsepc.yml
file in our source code to specify how CodeDeploy will deploy the containers to the ECS cluster. We need to make sure that the task definition Amazon Resource Names (ARN) matches what we have in our environment:
Figure 11.29 – ecs-appspec.yml
- Another file we need to create is the
taskdef.json
file, based on which ECS service will create the containers. This task definition is part of the GitHub repository source code; you just need to make sure that the task definition ARN and the image URL match your environment:
Figure 11.30 – taskdef.json
- Once you check these files into your CodeCommit repository,
aws-code-pipeline
, AWS CodePipeline will start the execution. Alternatively, you can start the build by clicking on...