aws-cdk.aws-codebuild
The CDK Construct Library for AWS::CodeBuild
What it is and what it does
This package provides CDK constructs for defining AWS CodeBuild projects—fully managed continuous integration build environments—as Python code. It allows you to specify build sources (CodeCommit, S3, GitHub, BitBucket), build specifications, artifacts, caching strategies, and CodePipeline integration declaratively within your infrastructure-as-code stack.
The package wraps AWS CodeBuild's API surface into CDK-native classes like Project, PipelineProject, Source, Artifacts, and Cache, letting you configure builds, their inputs, outputs, and execution parameters without writing CloudFormation templates directly. It depends on 20 AWS CDK modules (IAM, EC2, S3, CloudWatch, Logs, KMS, and others) to manage permissions, networking, storage, and observability for your builds.
Use it for:
- Define a CI/CD build project that compiles code and runs tests from a GitHub repository, with artifacts uploaded to S3.
- Set up a CodePipeline action that triggers CodeBuild to run on every commit to a CodeCommit repository.
- Configure S3 or local caching to speed up repeated builds by reusing dependencies and Docker layers.
- Create a build project with no source that runs custom build commands (e.g., data processing or scheduled tasks).
- Integrate CodeBuild with SNS notifications via CodeStar Notifications for build status alerts.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Defines AWS CodeBuild projects and build configurations as infrastructure-as-code constructs for the AWS CDK v1 framework.
No—do not install. This is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer maintained. AWS explicitly recommends migrating to AWS CDK v2. While the package has low install friction and permissive licensing, its end-of-life status and known vulnerability make it unsuitable for new projects. Migrate to the v2 equivalent instead.
Install
aws-cdk-aws-codebuild on PyPI
pip
pip install aws-cdk-aws-codebuilduv
uv add aws-cdk-aws-codebuildpoetry
poetry add aws-cdk-aws-codebuildInstalling aws-cdk.aws-codebuild
Before you install
Low install friction with a wheel distribution. However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated; users should migrate to AWS CDK v2 instead.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install aws-cdk.aws-codebuild
import aws_cdk.aws_codebuild as codebuild
project = codebuild.Project(self, "MyProject",
build_spec=codebuild.BuildSpec.from_object({
"version": "0.2",
"phases": {"build": {"commands": ["echo 'Hello, CodeBuild!'"]}}
})
)
Requires AWS CDK v1 core library and constructs module; v1 is end-of-support as of 2023-06-01.
Verify before relying
- Whether the single known vulnerability (GHSA-464c-974j-9xm6) affects this specific version or is already patched.
- Whether migration tooling or documentation exists to help users transition from v1 to v2.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 20 — aws-cdk.assets, aws-cdk.aws-cloudwatch, aws-cdk.aws-codecommit, aws-cdk.aws-codestarnotifications, aws-cdk.aws-ec2, aws-cdk.aws-ecr-assets, aws-cdk.aws-ecr, aws-cdk.aws-events, aws-cdk.aws-iam, aws-cdk.aws-kms, aws-cdk.aws-logs, aws-cdk.aws-s3-assets, aws-cdk.aws-s3, aws-cdk.aws-secretsmanager, aws-cdk.core, aws-cdk.region-info, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 150,280/month — #10,969 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | 1 — GHSA-464c-974j-9xm6 |
Evidence: aws_cdk.aws_codebuild-1.204.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
aws-cdk.aws-s3Defines AWS S3 buckets and related resources as…
permissive · top 15,000 on PyPI
aws-cdk.aws-cloudfrontDefines AWS CloudFront distributions and…
permissive · top 15,000 on PyPI
aws-cdk.aws-codecommitProvides AWS CDK constructs for creating and…
permissive · top 15,000 on PyPI
aws-solutions-constructs.coreProvides core building blocks and default…
permissive · top 15,000 on PyPI
aws-cdk.aws-imagebuilderProvides AWS CDK L1 constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-codestar-alphaProvides AWS CDK constructs for AWS CodeStar…
permissive · top 15,000 on PyPI
aws-cdk.aws-amplify-alphaDefines AWS Amplify hosting infrastructure as…
permissive · top 15,000 on PyPI
aws-cdk.aws-codestarnotificationsDefines AWS CodeStarNotifications rules in…
permissive · top 15,000 on PyPI
aws-cdk.aws-s3-deploymentDeploys files and directories to AWS S3 buckets…
permissive · top 15,000 on PyPI
aws-cdk.coreProvides the core construct classes and stack…
permissive · top 15,000 on PyPI