CodeBuild
Icon
About
Code Build is responsible to build the application once the code changes are committed to VCS.
Build instructions are present in buildspec.yml file.
The file should be present in the root of the code or can manually upload in to the
Management Console.Can use
CloudWatch Metricsto monitor build statistics.EventBridgeto detect failed builds and trigger notifications.CloudWatch Alarmsto notify if you need thresholds for failures.Build Project can be defined within
CodePipelineorCodeBuild.CodeBuildhas supported environments for many languages. However, if a particular runtime is not supported Docker Image can be used.
Working
CodeBuild uses a CodeBuild container to run the instructions written in buildspec.yml file.
The container will spin up the supported runtime to build the code.
CodeBuild uses a docker image to prepare the container.
CodeBuild can cache to S3 the seldom changing reusable files required in builds.
Output logs generated are stored in
S3andCloudWatchlogs.Artifacts generated as a result of
CodeBuildexecution is saved to S3 bucket.
BuildSpec File
BuildSpec reference has all details about different sections of file.
Build Phase describe the phases in
CodeBuild.
Last updated