- Lab
- A Cloud Guru
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.
Path Info
Table of Contents
-
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.
-
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.
-
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. -
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.
-
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.
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.