# Day 50: CI/CD pipeline on AWS - Part-1

Today's task: **<mark>Set up CodeCommit Repository and Clone Locally</mark>**

Let's get started

1. Set up GitCredentials in AWS IAM:
    
    Log in to the AWS Management Console and navigate to IAM (Identity and Access Management).
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687273102961/36a2a004-21f3-4f09-bf4f-9276141bd5fd.png align="center")
    
    1. Create or select an IAM user with the necessary permissions for accessing CodeCommit.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687273334600/5c6fcf2c-edb6-4aa7-96e8-42e820b65f49.png align="center")
        
    2. Generate Git credentials for the IAM user.  
        Click on user just created and go to security credentials
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687273602209/88e225f0-6937-476a-b58e-c75cfb47e500.png align="center")
        
        scroll down to HTTPS git credentials for AWS CpdeCommit
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687273618198/c9707c79-591c-43e2-8f87-4208697af87a.png align="center")
        
        Click on Generate credentials
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687273740386/5b175924-aaf7-4ed3-86bb-674c7de2c27e.png align="center")
        

Clone the repository from CodeCommit:

* In the AWS Management Console, go to the CodeCommit service.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687274484236/53f35968-1ff2-4316-9123-d01a049dc83b.png align="center")
    
* Create a new repository or select an existing one.
    
* Copy the repository's clone URL.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687274543933/ab1a6935-acce-40b1-9dab-5f2bbdd0f27c.png align="center")
    
* Open your terminal or Git client and navigate to the desired directory where you want to clone the repository.
    
* Run the following command, replacing `<REPO_CLONE_URL>` with the URL you copied:
    

```bash
git clone <REPO_CLONE_URL>
```

it will ask for user name and password. provide HTTPS git credentials which you creted before

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687274691670/96ced155-152f-482a-adc6-816d759d8ea0.png align="center")

You have successfully set up a code repository on CodeCommit and cloned it on your local machine.

**Task-02 : Add a new file from local and commit to your local branch**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687275157775/6a351c75-2e43-43ce-8726-9a662f721bba.png align="center")

**Push the local changes to CodeCommit repository.**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687275187327/4803109f-2849-4a5a-8f5c-d9d893b13e32.png align="center")

That was it for today ! see you in [part - 2](https://hashnode.com/post/clj57f9u0000209jn4xcgajo6)
