Use AWS CodeBuild & CodePipeline to Automate Deployment to Elastic Beanstalk
AWS has its own build and deployment offerings, called CodeBuild and CodePipeline respectively, and naturally, they are integrated with the other AWS services. CodePipeline connects your GitHub repository with CodeBuild and Elastic Beanstalk so that any update to your repository is built and deployed automatically to Elastic Beanstalk. In this post we will go through the process of integrating AWS CodeBuild and CodePipeline with our Elastic Beanstalk app. Setting up CodeBuild Most projects will have some sort of a build step before they are ready to be deployed to production, and it usually involves writing the output files that will be executed in the production environment. CodeBuild takes care of that part of the continuous deployment process. The commands to execute in CodeBuild are described in a special file, called buildspec.yml that should be at the root of your codebase. I’ll go through this file shortly, but let’s first crea...