aws-codebuild
TLDR
Start a build for a project
SYNOPSIS
aws codebuild command [options]
DESCRIPTION
aws codebuild manages AWS CodeBuild, a fully managed continuous integration service that compiles source code, runs tests, and produces deployable artifacts.
Projects define the build environment, source location (CodeCommit, S3, GitHub, Bitbucket), build commands (buildspec.yml), and output artifacts. Use create-project with a JSON configuration file to define all settings.
Builds are triggered with start-build, which can override project defaults for source version, environment variables, and buildspec. Builds run in isolated Docker containers with configurable compute resources.
Build output includes logs (stored in CloudWatch Logs and/or S3) and artifacts (stored in S3). Use batch-get-builds to retrieve build status, logs location, and timing information.
PARAMETERS
start-build
Start a build run for a projectstart-build-batch
Start a batch buildstop-build
Stop a running buildcreate-project
Create a new build projectupdate-project
Modify project configurationdelete-project
Remove a build projectlist-projects
List all build projectsbatch-get-builds
Get details of one or more buildsbatch-get-projects
Get details of one or more projectslist-builds-for-project
List builds for a specific project--project-name name
Name of the build project--id build-id
Build identifier--ids build-ids
Space-separated list of build IDs--source-version ref
Source version (branch, tag, commit ID)--environment-variables-override vars
Override environment variables (name=KEY,value=VAL)--buildspec-override path
Override buildspec file--cli-input-json file
Read parameters from JSON file--generate-cli-skeleton
Output JSON template for project creation
CAVEATS
Build timeouts default to 60 minutes; configure appropriately for long builds. IAM service role must have permissions for source access and artifact storage. Build cache helps speed up subsequent builds but must be configured. Concurrent build limits apply per account.
HISTORY
AWS CodeBuild launched in December 2016 at AWS re:Invent as part of the AWS developer tools suite. It was designed to eliminate the need for managing Jenkins or other CI servers. Build batches for parallel builds were added in 2020, improving performance for complex build matrices.
SEE ALSO
aws(1), aws-codepipeline(1), aws-codecommit(1), aws-s3(1)


