Once the release pipeline is created in AWS CodePipeline, we'll run it and deploy the application to our target servers. We make a minor change to the artifacts section of the buildspec.yml file to include all the files in the final artifact. We perform this change to include appspec.yml at the root directory of the compressed artifact produced by AWS CodeBuild when run from AWS CodePipeline. The deployment will fail if AWS CodeDeploy doesn’t see appspec.yml at the root location.

Get hands-on with 1200+ tech skills courses.