skillfed

aws-cdk.aws-codebuild

The CDK Construct Library for AWS::CodeBuild

aws-cdk-aws-codebuild v1.204.0 150.3K downloads/30d#10,969 on PyPI12,868
Permissive license Apache-2.0 Active released

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-codebuild

uv

uv add aws-cdk-aws-codebuild

poetry

poetry add aws-cdk-aws-codebuild

Installing 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

Development Status :: 7 - InactiveFramework :: AWS CDKFramework :: AWS CDK :: 1Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

AWS CodeBuild CDK constructCI/CD build projects infrastructureAWS CDK v1 build automationCodeBuild source and artifactsmanaged build environments CDKbuildspec configuration as code
aws-cdkend-of-lifeinfrastructure-as-code

More Build Tools packages

packaging

Provides reusable utilities for Python…

permissive · top 100 on PyPI

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

pip

pip is the standard installer for Python…

permissive · top 100 on PyPI

hatchling

Hatchling is a standards-compliant Python build…

permissive · top 100 on PyPI

grpcio-tools

Generates Python gRPC service stubs and message…

permissive · top 1,000 on PyPI

pre-commit

pre-commit is a framework for installing and…

permissive · top 1,000 on PyPI

aws-cdk.aws-s3

Defines AWS S3 buckets and related resources as…

permissive · top 15,000 on PyPI

aws-cdk.aws-cloudfront

Defines AWS CloudFront distributions and…

permissive · top 15,000 on PyPI

aws-cdk.aws-codecommit

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI

aws-solutions-constructs.core

Provides core building blocks and default…

permissive · top 15,000 on PyPI

aws-cdk.aws-imagebuilder

Provides AWS CDK L1 constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-codestar-alpha

Provides AWS CDK constructs for AWS CodeStar…

permissive · top 15,000 on PyPI

aws-cdk.aws-amplify-alpha

Defines AWS Amplify hosting infrastructure as…

permissive · top 15,000 on PyPI

aws-cdk.aws-codestarnotifications

Defines AWS CodeStarNotifications rules in…

permissive · top 15,000 on PyPI

aws-cdk.aws-s3-deployment

Deploys files and directories to AWS S3 buckets…

permissive · top 15,000 on PyPI

aws-cdk.core

Provides the core construct classes and stack…

permissive · top 15,000 on PyPI