--- id: aws-cdk-aws-codecommit version: "1.204.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # aws-cdk.aws-codecommit — The CDK Construct Library for AWS::CodeCommit License: permissive · Maintenance: active · Downloads: 147.5K/mo ## 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 above — 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 pip install aws-cdk-aws-codecommit uv add aws-cdk-aws-codecommit 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_current - Install friction: low - Maintenance: active - Downloads: 147.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags aws cdk codecommit repository, git repository aws cloud, cdk construct codecommit, aws codecommit infrastructure as code, cdk repository notifications events, aws-cdk, infrastructure-as-code, end-of-life [View on SkillFed](https://skillfed.io/packages/aws-cdk-aws-codecommit) · [View on PyPI](https://pypi.org/project/aws-cdk-aws-codecommit/)