hands-on lab

Introduction to CodeCommit

Difficulty: Beginner
Duration: Up to 40 minutes
Students: 8,931
Rating: 4.5/5
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.

Description

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.

Note: AWS closed access to the AWS CodeCommit service to new customers on the 25th of July 2024. This AWS CodeCommit lab is functional and may be useful to students expecting to work with existing AWS CodeCommit repositories.

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

Prerequisites

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. 

Updates

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

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