Creating a New CodeCommit Repository
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.
1. In the AWS Management Console search bar, enter CodeCommit, and click the CodeCommit result under Services:
2. Click Create repository:
3. In the Repository name textbox, enter lab-repository:
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:
You be redirected to a page detailing your newly created repository, and you will see a notification that your repository has been created:
5. To copy the URL of your repository, click Clone URL and in the drop-down that opens click Clone HTTPS:
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:
6. In the left-hand menu, click on Users:
7. In the list of users, click student:
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:
9. Scroll down to the HTTPS Git credentials for AWS CodeCommit section and click Generate credentials:
10. In the box that opens, click Download credentials:
Your browser will download a CSV file containing credentials that allow access to AWS CodeCommit repositories.
Keep these credentials, you will use them later.
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.
Check that the AWS CodeCommit repository has been created.