aws-cdk.aws-codecommit
The CDK Construct Library for AWS::CodeCommit
What it is and what it does
This package is a CDK Construct Library that wraps AWS CodeCommit, a managed Git repository service in AWS. It allows you to define CodeCommit repositories as infrastructure-as-code within your CDK stacks, configure repository properties like name and description, and set up event-driven workflows.
The library provides methods to attach SNS notifications to repository events (commits, pull request comments), define CloudWatch event rules that trigger on repository activities, and initialize repositories with code from local directories or ZIP files. It integrates with other CDK constructs like CodeBuild and SNS for building automation pipelines. However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer receiving updates; new projects should use AWS CDK v2 instead.
Use it for:
- Define a managed Git repository in AWS as part of a CDK stack without manual console configuration.
- Trigger CodeBuild projects or SNS notifications automatically when code is pushed to specific branches.
- Initialize a CodeCommit repository with starter code from a local directory during stack deployment.
- Set up Slack notifications for pull request activity using CodeStar Notifications and Chatbot.
- Integrate repository events into a larger CI/CD pipeline defined in CDK.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AWS CDK constructs for creating and managing AWS CodeCommit Git repositories, including configuration for notifications, events, and initial code setup.
No. This is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer maintained. While the package has low install friction and permissive licensing, AWS explicitly recommends migrating to AWS CDK v2. Installing v1 now locks you into an unsupported codebase with no future security or feature updates. Use aws-cdk.aws-codecommit v2 instead.
Install
aws-cdk-aws-codecommit on PyPI
pip
pip install aws-cdk-aws-codecommituv
uv add aws-cdk-aws-codecommitpoetry
poetry add aws-cdk-aws-codecommitInstalling aws-cdk.aws-codecommit
Before you install
Low install friction with a pure-Python wheel. 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.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install aws-cdk.aws-codecommit
import aws_cdk.aws_codecommit as codecommit
repo = codecommit.Repository(self, "Repository",
repository_name="MyRepositoryName",
description="Some description."
)
Requires Python 3.7 or later; part of AWS CDK v1 which is no longer maintained as of 2023-06-01.
Verify before relying
- Whether migration tooling or compatibility layers exist for moving from v1 to v2.
- Current security patch status and timeline for v1 end-of-life support.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — aws-cdk.aws-codestarnotifications, aws-cdk.aws-events, aws-cdk.aws-iam, aws-cdk.aws-s3-assets, aws-cdk.core, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 147,498/month — #11,064 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk.aws_codecommit-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-codestar-alphaProvides AWS CDK constructs for AWS CodeStar…
permissive · top 15,000 on PyPI
aws-cdk.aws-codestarnotificationsDefines AWS CodeStarNotifications rules in…
permissive · top 15,000 on PyPI
git-remote-codecommitExtends Git to clone and push to AWS CodeCommit…
permissive · top 5,000 on PyPI
aws-cdk.aws-ecrProvides AWS CDK constructs for defining,…
permissive · top 15,000 on PyPI
aws-cdk.aws-codebuildDefines AWS CodeBuild projects and build…
permissive · top 15,000 on PyPI
aws-cdk.aws-sns-subscriptionsProvides AWS CDK constructs for subscribing SNS…
permissive · top 15,000 on PyPI
aws-cdk.aws-snsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-codeguruprofilerProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-sqsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-eventsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI