skillfed

aws-cdk.aws-codecommit

The CDK Construct Library for AWS::CodeCommit

aws-cdk-aws-codecommit v1.204.0 147.5K downloads/30d#11,064 on PyPI12,868
Permissive license Apache-2.0 Active released

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

uv

uv add aws-cdk-aws-codecommit

poetry

poetry add aws-cdk-aws-codecommit

Installing 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

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 cdk codecommit repositorygit repository aws cloudcdk construct codecommitaws codecommit infrastructure as codecdk repository notifications events
aws-cdkinfrastructure-as-codeend-of-life

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-codestar-alpha

Provides AWS CDK constructs for AWS CodeStar…

permissive · top 15,000 on PyPI

aws-cdk.aws-codestarnotifications

Defines AWS CodeStarNotifications rules in…

permissive · top 15,000 on PyPI

git-remote-codecommit

Extends Git to clone and push to AWS CodeCommit…

permissive · top 5,000 on PyPI

aws-cdk.aws-ecr

Provides AWS CDK constructs for defining,…

permissive · top 15,000 on PyPI

aws-cdk.aws-codebuild

Defines AWS CodeBuild projects and build…

permissive · top 15,000 on PyPI

aws-cdk.aws-sns-subscriptions

Provides AWS CDK constructs for subscribing SNS…

permissive · top 15,000 on PyPI

aws-cdk.aws-sns

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-cdk.aws-codeguruprofiler

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-sqs

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-cdk.aws-events

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI