Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon

Configure and Work with CodeCommit from the CLI

In this hands-on lab, you go through the process of configuring a CodeCommit repository from the AWS Command Line Interface. You also go through some key prerequisite steps, such as installing Git, configuring HTTPS credentials, and preparing the environment to work with Git and CodeCommit. This lab covers the steps that need to be taken any time you work with CodeCommit from the CLI.

Google Cloud Platform icon

Path Info

Clock icon Intermediate
Clock icon 1h 0m
Clock icon Nov 20, 2019

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create a Server from an Amazon Linux 2 AMI

    Navigate to the EC2 console and create an Amazon Linux 2 server of type t3.micro with a public IP address.

  2. Challenge

    Install Git and Create IAM CodeCommit Credentials

    Connect to the EC2 instance and update the server. Once updated, install Git. Then, navigate to Identity and Access Management (IAM) and select the cloud_user user and generate an Access Key and HTTPS Git Credentials for AWS CodeCommit.

  3. Challenge

    Create a CodeCommit Repository

    While logged in to the EC2 instance, configure AWS CLI and create a CodeCommit Repository called RepoFromCLI. Once the repo has been created, verify the repo was created in CodeCommit.

  4. Challenge

    Clone the Repo

    From the AWS portal, upload a file of your choice to your CodeCommit repository. Once the file has been uploaded, return to the EC2 instance and clone the repository to the EC2 instance.

  5. Challenge

    Test the Repo

    Verify the file you uploaded is on your EC2 instance. Once verified, practice creating a test file. Then, add, commit, and push the file to the repo. Finally, verify the file created on the EC2 instance is available in CodeCommit through the AWS console.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans