Amazon CodeCommit is no longer available to new customers. Existing customers of
Amazon CodeCommit can continue to use the service as normal.
Learn more"
Product and service integrations with Amazon CodeCommit
By default, CodeCommit is integrated with a number of Amazon services. You can also use CodeCommit with products and services outside of Amazon. The following information can help you configure CodeCommit to integrate with the products and services you use.
Note
You can automatically build and deploy commits to a CodeCommit repository by integrating with CodePipeline. To learn more, follow the steps in the Amazon for DevOps Getting Started Guide.
Integration with other Amazon services
CodeCommit is integrated with the following Amazon services:
Amazon Amplify |
Amazon 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 Amazon servers. Amplify accesses your repository using deploy keys installed in a specific repository only.
Learn more: |
Amazon Cloud9 |
Amazon 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 Amazon Cloud9 integrated development environment, or IDE. You access the Amazon 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: |
Amazon CloudFormation |
Amazon CloudFormation is a service that helps you model and set up your Amazon 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 Amazon CloudFormation takes care of provisioning and configuring those resources for you. Learn more: |
Amazon CloudTrail |
CloudTrail captures Amazon 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 Amazon CodeCommit console, CodeCommit commands from the Amazon 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 Amazon 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 Amazon services, such as Amazon Simple Queue Service, Amazon Kinesis, Amazon Lambda, and many more. Learn more: |
Amazon 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: |
Amazon 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 CodeStar |
AWS CodeStar is a cloud-based service for creating, managing, and working with software development projects on Amazon. You can quickly develop, build, and deploy applications on Amazon with an AWS CodeStar project. An AWS CodeStar project creates and integrates Amazon services for your project development toolchain, including a CodeCommit repository for the project. AWS CodeStar also assigns permissions to team members for that project. These permissions are applied automatically, including permissions for accessing CodeCommit, creating and managing Git credentials, and more. You can configure repositories created for AWS CodeStar projects just as you would any other CodeCommit repository by using the Amazon CodeCommit console, CodeCommit commands from the Amazon CLI, the local Git client, and from the CodeCommit API. Learn more: |
Amazon Elastic Beanstalk |
Elastic Beanstalk is a managed service that makes it easy to deploy and manage applications in the Amazon 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: |
Amazon Key Management Service |
Amazon 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 Amazon KMS to encrypt repositories. Learn more: |
Amazon 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 Amazon 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. Amazon is not responsible for the content or accuracy of external content.
Topics
Blog posts
-
Integrating SonarQube as a Pull Request Approver on Amazon 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 Amazon CodeCommit, Amazon CodePipeline, and Amazon CodeBuild From GitLab
Learn how to migrate multiple repositories to Amazon CodeCommit from GitLab and set up a CI/CD pipeline using Amazon CodePipeline and Amazon CodeBuild.
Published November 22, 2019
-
Learn how to implement GitFlow using Amazon CodePipeline, Amazon CodeCommit, Amazon CodeBuild, and Amazon CodeDeploy.
Published February 22, 2019
-
Using Git with Amazon CodeCommit Across Multiple Amazon Accounts
Learn how to manage your Git configuration across multiple Amazon Web Services accounts.
Published February 12, 2019
-
Validating Amazon CodeCommit Pull Requests with Amazon CodeBuildand Amazon Lambda
Learn how to validate pull requests with Amazon CodeCommit, Amazon CodeBuild, and Amazon 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 Amazon CodeCommit
Learn how to access repositories in Amazon CodeCommit using the identities used in your business.
Published October 5, 2018
-
Refining Access to Branches in Amazon 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 Amazon CodeCommit Repositories Between Regions Using Amazon Fargate
Learn how to set up continuous replication of a CodeCommit repository from one Amazon region to another using a serverless architecture.
Published April 11, 2018
-
Distributing Your Amazon OpsWorks for Chef Automate Infrastructure
Learn how to use CodePipeline, CodeCommit, CodeBuild, and Amazon Lambda to ensure that cookbooks and other configurations are consistently deployed across two or more Chef Servers residing in one or more Amazon Web Services Regions.
Published March 9, 2018
-
Peanut Butter and Chocolate: Azure Functions CI/CD Pipeline with Amazon 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 Amazon together to create a fully managed, continuous deployment pipeline for container based applications.
Published January 11, 2018
-
Use Amazon 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 Amazon 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 Amazon services. Examples include Amazon 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
-
Migrating to Amazon CodeCommit
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, Amazon CodeCommit, Jenkins, and Amazon 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 Amazon 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 Amazon OpsWorks and Amazon CodeCommit
Learn how Amazon OpsWorks can automatically fetch Apps and Chef cookbooks from CodeCommit.
Published August 25, 2015
-
Using Amazon 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 Amazon CodeCommit from Eclipse
Learn how to use the EGit tools in Eclipse to work with CodeCommit.
Published August 2015
-
Amazon 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 Amazon CodeCommit with Jenkins
Learn how to use CodeCommit and Jenkins to support two simple continuous integration (CI) scenarios.
Published July 2015
-
Integrating Amazon 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