AWS CodeBuild – Build Phases and buildspec.yml file



AWS CodeBuild – Build Phases and buildspec.yml file

#aws #awstutorialforbeginners #AWSTutorial

This is part of Phase 1 of continuously deploying an Angular app to S3. To get the source used in this video and all videos in Phase 1 download the following repository and use the Phase1 branch.

https://github.com/lyraddigital/angular-devops

In this video I explain build phases in AWS CodeBuild, what each phase does, and how the transition from one to the other. I then take you through how to handle each phase inside of a buildspec.yml file. We finally see all this running in action by executing a build.

The phases we look at are:-

– Submitted Phase
– Provisioning Phase
– Download Source Phase
– Install Phase
– Pre Build Phase
– Build Phase
– Post Build Phase
– Update Artifacts Phase
– Finalizing Phase
– Completed Phase

We then learn how to we can hook into the following phases using a file called buildSpec.yml:-

– Install (using the install section)
– Pre Build (using the pre_build section)
– Build (using the build section)
– Post Build (using the post_build section)

source

You May Also Like