Creating a New CodeCommit Repository

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating a New CodeCommit Repository
lock
Creating an SNS Topic and a Subscription
lock
Implementing a Lambda Function to Process CodeCommit Events
lock
Connecting to the Virtual Machine using EC2 Instance Connect
lock
Testing the CodeCommit Trigger
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

In this lab step, you will create a CodeCommit repository and generate credentials to allow you to access your repository from the command-line in a later lab step.

 

Instructions

1. In the AWS Management Console search bar, enter CodeCommit, and click the CodeCommit result under Services:

alt

 

2. Click Create repository:

alt

 

3. In the Repository name textbox, enter lab-repository:

alt

In a non-lab environment, you would give your repository a meaningful name that would make it easy to find again later. Adding a description detailing the purpose of a repository is also a good practice.

 

4. To create your repository, click Create:

alt

You be redirected to a page detailing your newly created repository, and you will see a notification that your repository has been created:

alt

 

5. To copy the URL of your repository, click Clone URL and in the drop-down that opens click Clone HTTPS:

alt

Paste this URL somewhere you can easily retrieve it, you will use it in a moment to connect to your repository.

CloudAcademy recommends opening an email draft to take notes for the duration of the lab.

 

5. In the AWS Management Console search bar, enter IAM, and click the IAM result under Services:

alt

 

6. In the left-hand menu, click on Users:

alt

 

7. In the list of users, click student:

alt

You may see warning messages about permissions, these can be safely ignored. You have exactly the permissions needed to complete this lab.

 

8. Click the Security Credentials tab:

alt

 

9. Scroll down to the HTTPS Git credentials for AWS CodeCommit section and click Generate credentials:

alt

 

10. In the box that opens, click Download credentials:

alt

Your browser will download a CSV file containing credentials that allow access to AWS CodeCommit repositories.

Keep these credentials, you will use them later.

 

Summary

In this lab step, you created a CodeCommit Git repository using the AWS Management Console and you created credentials using AWS IAM for accessing your repository.

Validation checks
1Checks
Created the CodeCommit Repository

Check that the AWS CodeCommit repository has been created.

AWS CodeCommit

Learning Pathnavigation