AWS CodeCommit is no longer available to new customers. Existing customers of
AWS CodeCommit can continue to use the service as normal.
Learn more"
Product and service integrations with AWS CodeCommit
By default, CodeCommit is integrated with a number of AWS services. You can also use CodeCommit with products and services outside of AWS. The following information can help you configure CodeCommit to integrate with the products and services you use.
Integration with other AWS services
CodeCommit is integrated with the following AWS services:
AWS Amplify |
AWS Amplify You can connect your CodeCommit repository in the Amplify console. After you authorize the Amplify console, Amplify fetches an access token from the repository provider, but it doesn't store the token on the AWS servers. Amplify accesses your repository using deploy keys installed in a specific repository only.
Learn more: |
AWS Cloud9 |
AWS Cloud9 contains a collection of tools that you use to code, build, run, test, debug, and release software in the cloud. This collection of tools is referred to as the AWS Cloud9 integrated development environment, or IDE. You access the AWS Cloud9 IDE through a web browser. The IDE offers a rich code-editing experience with support for several programming languages and runtime debuggers, and a built-in terminal. Learn more: |
AWS CloudFormation |
AWS CloudFormation is a service that helps you model and set up your AWS resources so that you can spend less time managing those resources and more time focusing on your applications. You create a template that describes resources, including a CodeCommit repository, and AWS CloudFormation takes care of provisioning and configuring those resources for you. Learn more: |
AWS CloudTrail |
CloudTrail captures AWS API calls and related events made by or on behalf of an Amazon Web Services account and delivers log files to an Amazon S3 bucket that you specify. You can configure CloudTrail to capture API calls from the AWS CodeCommit console, CodeCommit commands from the AWS CLI, the local Git client, and from the CodeCommit API. Learn more: |
Amazon CloudWatch Events |
CloudWatch Events delivers a near real-time stream of system events that describe changes in AWS resources. Using simple rules that you can quickly set up, you can match events and route them to one or more target functions or streams. CloudWatch Events becomes aware of operational changes as they occur. CloudWatch Events responds to these operational changes and takes action as necessary, by sending messages to respond to the environment, activating functions, making changes, and capturing state information. You can configure CloudWatch Events to monitor CodeCommit repositories and respond to repository events by targeting streams, functions, tasks, or other processes in other AWS services, such as Amazon Simple Queue Service, Amazon Kinesis, AWS Lambda, and many more. Learn more: |
AWS CodeBuild |
CodeBuild is a fully managed build service in the cloud that compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. You can store the source code to be built and the build specification in a CodeCommit repository. You can use CodeBuild directly with CodeCommit, or you can incorporate both CodeBuild and CodeCommit in a continuous delivery pipeline with CodePipeline. Learn more: |
Amazon CodeGuru Reviewer | Amazon CodeGuru Reviewer is an automated code review service that uses program analysis and machine learning to detect common issues and recommend fixes in your Java or Python code. You can associate repositories in your Amazon Web Services account with CodeGuru Reviewer. When you do, CodeGuru Reviewer creates a service-linked role that allows CodeGuru Reviewer to analyze code in all pull requests created after the association is made. Learn more: |
AWS CodePipeline |
CodePipeline is a continuous delivery service you can use to model, visualize, and automate the steps required to release your software. You can configure CodePipeline to use a CodeCommit repository as a source action in a pipeline, and automate building, testing, and deploying your changes. Learn more: |
AWS Elastic Beanstalk |
Elastic Beanstalk is a managed service that makes it easy to deploy and manage applications in the AWS cloud without worrying about the infrastructure that runs those applications. You can use the Elastic Beanstalk command line interface (EB CLI) to deploy your application directly from a new or existing CodeCommit repository. Learn more: |
AWS Key Management Service |
AWS KMS is a managed service that makes it easy for you to create and control the encryption keys used to encrypt your data. By default, CodeCommit uses AWS KMS to encrypt repositories. Learn more: |
AWS Lambda |
Lambda lets you run code without provisioning or managing servers. You can configure triggers for CodeCommit repositories that invoke Lambda functions in response to repository events. Learn more: |
Amazon Simple Notification Service |
Amazon SNS is a web service that enables applications, end users, and devices to instantly send and receive notifications from the cloud. You can configure triggers for CodeCommit repositories that send Amazon SNS notifications in response to repository events. You can also use Amazon SNS notifications to integrate with other AWS services. For example, you can use an Amazon SNS notification to send messages to an Amazon Simple Queue Service queue. Learn more: |
Integration examples from the community
The following sections provide links to blog posts, articles, and community-provided examples.
Note
These links are provided for informational purposes only, and should not be considered either a comprehensive list or an endorsement of the content of the examples. AWS is not responsible for the content or accuracy of external content.
Topics
Blog posts
-
Integrating SonarQube as a Pull Request Approver on AWS CodeCommit
Learn how to create a CodeCommit repository that requires a successful SonarQube quality analysis before pull requests can be merged.
Published December 12, 2019
-
Migration to AWS CodeCommit, AWS CodePipeline, and AWS CodeBuild From GitLab
Learn how to migrate multiple repositories to AWS CodeCommit from GitLab and set up a CI/CD pipeline using AWS CodePipeline and AWS CodeBuild.
Published November 22, 2019
-
Implementing GitFlow Using AWS CodePipeline, AWS CodeCommit, AWS CodeBuild, and AWS CodeDeploy
Learn how to implement GitFlow using AWS CodePipeline, AWS CodeCommit, AWS CodeBuild, and AWS CodeDeploy.
Published February 22, 2019
-
Using Git with AWS CodeCommit Across Multiple AWS Accounts
Learn how to manage your Git configuration across multiple Amazon Web Services accounts.
Published February 12, 2019
-
Validating AWS CodeCommit Pull Requests with AWS CodeBuildand AWS Lambda
Learn how to validate pull requests with AWS CodeCommit, AWS CodeBuild, and AWS Lambda. By running tests against the proposed changes prior to merging them into the default branch, you can help ensure a high level of quality in pull requests, catch any potential issues, and boost the confidence of the developer in relation to their changes.
Published February 11, 2019
-
Using Federated Identities with AWS CodeCommit
Learn how to access repositories in AWS CodeCommit using the identities used in your business.
Published October 5, 2018
-
Refining Access to Branches in AWS CodeCommit
Learn how to restrict commits to repository branches by creating and applying an IAM policy that uses a context key.
Published May 16, 2018
-
Replicate AWS CodeCommit Repositories Between Regions Using AWS Fargate
Learn how to set up continuous replication of a CodeCommit repository from one AWS region to another using a serverless architecture.
Published April 11, 2018
-
Distributing Your AWS OpsWorks for Chef Automate Infrastructure
Learn how to use CodePipeline, CodeCommit, CodeBuild, and AWS Lambda to ensure that cookbooks and other configurations are consistently deployed across two or more Chef Servers residing in one or more AWS Regions.
Published March 9, 2018
-
Peanut Butter and Chocolate: Azure Functions CI/CD Pipeline with AWS CodeCommit
Learn how to create a PowerShell-based Azure Functions CI/CD pipeline where the code is stored in a CodeCommit repository.
Published February 19, 2018
-
Learn how to use Kubernetes and AWS together to create a fully managed, continuous deployment pipeline for container based applications.
Published January 11, 2018
-
Use AWS CodeCommit Pull Requests to Request Code Reviews and Discuss Code
Learn how to use pull requests to review, comment upon, and interactively iterate on code changes in a CodeCommit repository.
Published November 20, 2017
-
Build Serverless AWS CodeCommit Workflows Using Amazon CloudWatch Events and JGit
Learn how to create CloudWatch Events rules that process changes in a repository using CodeCommit repository events and target actions in other AWS services. Examples include AWS Lambda functions that enforce Git commit message policies on commits, replicate a CodeCommit repository, and backing up a CodeCommit repository to Amazon S3.
Published August 3, 2017
-
Learn how to push code to two repositories as part of migrating from using another Git repository to CodeCommit when using SourceTree.
Published September 6, 2016
-
Set Up Continuous Testing with Appium, AWS CodeCommit, Jenkins, and AWS Device Farm
Learn how to create a continuous testing process for mobile devices using Appium, CodeCommit, Jenkins, and Device Farm.
Published February 2, 2016
-
Using AWS CodeCommit with Git Repositories in Multiple Amazon Web Services accounts
Learn how to clone your CodeCommit repository and, in one command, configure the credential helper to use a specific IAM role for connections to that repository.
Published November 2015
-
Integrating AWS OpsWorks and AWS CodeCommit
Learn how AWS OpsWorks can automatically fetch Apps and Chef cookbooks from CodeCommit.
Published August 25, 2015
-
Using AWS CodeCommit and GitHub Credential Helpers
Learn how to configure your gitconfig file to work with both CodeCommit and GitHub credential helpers.
Published September 2015
-
Using AWS CodeCommit from Eclipse
Learn how to use the EGit tools in Eclipse to work with CodeCommit.
Published August 2015
-
AWS CodeCommit with Amazon EC2 Role Credentials
Learn how to use an instance profile for Amazon EC2 when configuring automated agent access to a CodeCommit repository.
Published July 2015
-
Integrating AWS CodeCommit with Jenkins
Learn how to use CodeCommit and Jenkins to support two simple continuous integration (CI) scenarios.
Published July 2015
-
Integrating AWS CodeCommit with Review Board
Learn how to integrate CodeCommit into a development workflow using the Review Board
code review system. Published July 2015
Code samples
The following are code samples that might be of interest to CodeCommit users.
-
Mac OS X Script to Periodically Delete Cached Credentials in the OS X Certificate Store
If you use the credential helper for CodeCommit on Mac OS X, you are likely familiar with the problem with cached credentials. This script demonstrate one solution.
Author: Nico Coetzee
Published February 2016