CodeBuild is AWS’ offering for running builds in the cloud. We can think of it as an alternative to TravisCI or CircleCI.
There are 4 things we need to configure as part of a CodeBuild project:
- Source - Get the code we want to build. At the time of this writing, we can retrieve code from S3, GitHub, Bitbucket or CodeCommit (AWS’ code hosting offering)
- Environment - Type of machine to use for the builds
- Buildspec - Commands to run as part of the build
- Artifacts - Artifacts to publish to S3 (Optional)