AWS Code Commit & Demos
Tags: aws, codecommit, private, repository
Published: 2024-04-26 11:29:00

**AWS CodeCommit** : Securely host highly scalable private Git repositories and collaborate on code

- 5 Active Users with AWS Free Tier

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j3cgoo28j8w43zg974si.png)


**Use Cases :**
- Collaborate on code
- Use your existing tools
- Receive notifications and custom scripts - Use Amazon Simple Notification Service (SNS) notifications for events impacting your repositories
- Create up to 5000 repositories by default - Can generate upto 25000 additional repositories by request


**Reference :** Code commit [user guide](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html#welcome-alternate-services) 

**I.Step by Step approach for creating code commit repository**
Step1: Search for codecommit service
Step2 : Click on Create Repository

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/35bnd51bu0upktvxhy2s.png)

Step3: Entered the mandatory fields as required for creating repository and then click on create 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e1gz5ijrplurl0bs5111.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ok6nrcx9r31dgggx88hs.png)

Step4: Click on Add File and add relevant files to the repository then click on commit

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0c9o3o19b1qds4tn27xa.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j5v996jzl1kef7tm7w5o.png)

Step5 : Can able to see the files added to the repository

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ao4vjc469uez6oy5e4po.png)

Step6: If we wanted to have notifications for the repository you have created then click on **create notification rule**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yu0i45vvkwaigklaj1mm.png)

Step7: Click on Create target


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1sup7nyn8fg11zdr762p.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r38mbfm0klf2ccl4jqnu.png)


After enabling SNS notification then next screen looks like 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qdac2zxxjpy3sfsms58p.png)


Step8(optional) : If you wanted to change the repo name, click on the repository name and click on settings in the left side menus as per picture below and click on save

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4s96jpggqjpzxb5hizkl.png)


**II.Step by Step approach for accessing code commit repository**

Step1: Select the IAM user then click on security credentials tab

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pcgotde2bm3u86jzoy4e.png)


Step2 : Drag down in security credentials tab and then click on Generate Credentials


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ecodku13em3r2j5qgrzq.png)

Step3: Copy and download the credentials, if we dont download we cant able to see the credentials later

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nxupintvnc0gk0hipo6t.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d7qst452to5jvqj3n9as.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbqy3unfdm9n1c9hwbay.png)

Step 4: create a text file - helloworld.txt and commit using git commands


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w2151byfcod71bwzcuth.png)

Step5: Check the changes in AWS Console -> codecommit-> select the repository where changes has been pushed.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3s1jx2momfvxn471pu3v.png)



Conclusion : Discussed about AWS Codecommit and step by step approach of using the service

💬 If you enjoyed reading this blog post and found it informative, please take a moment to share your thoughts by leaving a review and liking it 😀 and share this blog with ur friends and follow me in [linkedin](https://www.linkedin.com/in/srinivasuluparanduru)