hands-on lab

Introduction to CodeCommit

Up to 40m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


AWS CodeCommit is a fully-managed source control service that makes it easy for companies to host secure and highly scalable private Git repositories. CodeCommit eliminates the need to operate your own source control system or worry about scaling its infrastructure. You can use CodeCommit to securely store anything from source code to binaries, and it works seamlessly with your existing Git tools.

In this Lab, you will go through the basic usage of this service, creating, accessing, and managing a repository. You will use the Git command-line application on a Linux host to add a file to your repository.

Learning Objectives

At the end of this Lab, you will be able to:

  • Create a repository
  • Access a repository using the Git command-line interface
  • Add files to a repository using the Git command-line interface

Intended Audience

This lab is intended for:

  • Developers
  • Cloud Engineers


This is a beginner level Lab, you should be familiar with:

  • The concept of source control

Familiarity with Git will be helpful but is not required. 


January 19th, 2023 - Resolved permissions issue

September 14th, 2022 - Updated the instructions and screenshots to reflect the latest UI

December 12th, 2020 - Updated screenshots in the EC2 instance connect step to reflect UI changes

April 27th, 2020 - Added instructions to use the EC2 Instance Connect shell. Added a validation Lab Step. All instructions and screenshots updated.

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

Environment before

Environment after

About the author

Learning paths

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Create a repository
Creating credentials to access your repository
Accessing a shell with Git available
Adding files to your repository
Pushing your commit to your remote repository