Skip to main content

Git Access

This document provides instructions on accessing and cloning a Git repository from an AWS CodeCommit repository using Git. Here's a brief explanation of the steps:

Step 1: Read the AWS Tutorial

Before you begin, make sure to thoroughly read the AWS tutorial on managing CodeCommit repositories. This will help you understand how the service works and the best practices to follow when using CodeCommit.

Step 2: Create an AWS User

You need to create an AWS user with the necessary permissions to clone the Git repository. You can follow the tutorial's instructions to create this user.

Step 3: Configure Git Locally

After creating the IAM user with the appropriate permissions, configure Git on your local computer to communicate with AWS CodeCommit.

Step 4: Clone the Git Repository

You are now ready to clone the CodeCommit Git repository using the git clone command. You can use one of the following two commands depending on your preference or the availability of tools:

git clone https://git-codecommit.{region}.amazonaws.com/v1/repos/{idrepos}

If you have the AWS CLI installed, you can also use the command:

git clone codecommit://{idrepos}

It's worth noting that the "staging" and "production" environments correspond to the WBCE_Staging and WBCE_Prod branches. This means that the Git repository you clone will likely contain these branches for staging and production environments. You can work on these branches for development and testing, and then merge changes into the main branch once they are ready for production.