Day 50: Your CI/CD pipeline on AWS - Part-1 ๐Ÿš€ โ˜

Day 50: Your CI/CD pipeline on AWS - Part-1 ๐Ÿš€ โ˜

ยท

3 min read

๐Ÿ™ Introduction:

In this blog, we will deploy CI/CD pipeline on AWS using (CodeCommit, CodeBuild, CodeDeploy, CodePipeline & S3) tools, this is the part-1

๐Ÿ”ถWhat is CodeCommit?

CodeCommit is a managed source control service by AWS that allows users to store, manage, and version their source code and artifacts securely and at scale. It supports Git, integrates with other AWS services, enables collaboration through branch and merge workflows, and provides audit logs and compliance reports to meet regulatory requirements and track changes. Overall, CodeCommit provides developers with a reliable and efficient way to manage their codebase and set up a CI/CD pipeline for their software development projects.

๐ŸŽฏTask: 1

  1. Set up a code repository on CodeCommit and clone it on your local

  • Log in to AWS Management Console and go to CodeCommit

  • Click on Create Repository, Enter the Repository name & Description (optional) Click on Create

Repositories Created

  1. You need to setup GitCredentials in your AWS IAM

  • Go to IAM console, Click on Users in the left-hand menu & create a user

  • User created

  • Go to the user which we created, Scroll down to the Security credentials section

  • Under security credentials, scroll down and come to HTTPS Git credentials for AWS CodeCommit & Click on Generate credentials

  • Download your credentials in your system for further usage

  • Git credentials is created

  • Give the user to CodeCommit access

  1. Use those credentials in your local and then clone the repository from CodeCommit

  • In Code Commit, Go inside your repository that we created, in right-hand side click on Clone URL and choose Clone HTTPS

  • Open a terminal on local machine, Navigate to the directory where you want to clone the repository

  • Enter the command git clone <repository-url>

  • It will be prompted to enter your Git credentials

  • Now we have set up a CodeCommit repository and cloned it on your local machine using Git Credentials in AWS IAM

๐ŸŽฏTask: 2

  1. Add a new file from local and commit to your local branch

  • Create a new file in the local repository

  • Add & Commit the new file to your local branch

  1. Push the local changes to CodeCommit repository

git push <repository-url> master

  1. Verify that the changes have been pushed to the CodeCommit repository

  • Go to the code commit repository, you should see the new file listed in the repository's files

๐Ÿ‘‹ Conclusion :

In this blog, we have covered CodeCommit & we have demonstrate how to push the file from local machine to CodeCommit repository, in the next blog we will cover AWS Topics.

Thank you for reading!

Contact me on Linkedin

Check out my GitHub for more resources ๐Ÿ“š

ย