You are currently viewing How To Create An AWS CodeCommit Repository

How To Create An AWS CodeCommit Repository

How To Create An AWS CodeCommit Repository

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed different DevOps tools available in AWS.

In this blog post, we will start with our 1st AWS DevOps tool AWS CodeCommit and will discuss how to create an AWS CodeCommit repository using AWS CLI.

What Is AWS CodeCommit:

CodeCommit is a secure, highly scalable, managed source control service that hosts private Git repositories. CodeCommit eliminates the need for you to manage your own source control system or worry about scaling its infrastructure. You can use CodeCommit to store anything from code to binaries. It supports the standard functionality of Git, so it works seamlessly with your existing Git-based tools. You can compare CodeCommit service with GitHub, GitLab, Bitbucket or any git-based hosting solution.

What Is A Repository:

In version control systems (for example, git), a repository is a data structure that stores metadata for a set of files or directory structure. Some of the metadata that a repository contains includes, among other things:

  • A historical record of changes in the repository.
  • A set of commit objects.
  • A set of references to commit objects called heads.

How To Create An AWS CodeCommit Repository:


AWS CLI installed and configured. You can follow the below blog post to install and configure AWS CLI.

Git installed and configured.

Step 1: Create a new AWS CodeCommit repository using AWS CLI.

Step 2: Get details for your newly created CodeCommit repository.

Step 3: Update CodeCommit repository name and description using AWS CLI.

Our 1st AWS CodeCommit repository created and updated successfully.

How To Create An AWS CodeCommit Repository

Step 4: Try to clone your AWS CodeCommit repository.

Note: In order to access your AWS CodeCommit repository remotely, you have to 1st configure the access. Since we have not configured any access method for our CodeCommit repository, you will not be able to clone your repo. There are several ways to access an AWS CodeCommit repository which we will cover in the next blog post.

Step 5: Cleanup (do not delete if you want to continue with the series)

Hope you have enjoyed this blog post. To get more details on AWS CodeCommit, please refer below AWS documentation

CodeCommit is a Git-based version control system and you need to have a basic understanding of Git in order to work with CodeCommit. You can follow the below link to get a basic understanding of Git.


Leave a Reply