Day 50 - CI/CD pipeline on AWS(Part-1)

Day 50 - CI/CD pipeline on AWS(Part-1)

Day 50 of 90daysofdevops

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

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

  • Go to the AWS Management Console and navigate to the CodeCommit service and click on "Create repository".

  • Provide a name for your repository and click on Create.

  • The repository is successfully created now.

You need to set up GitCredentials in your AWS IAM.

  • Navigate to the IAM console and click on Users in the left-hand menu, and then click on add users.

  • Create a user as we have seen in previous day tasks.

  • Click on the created user and scroll down and navigate to the Security credentials section.

  • Under security credentials, scroll down and come to the 'HTTPS Git credentials for AWS CodeCommit' section, and click on 'Generate credentials'.

  • Download the credentials.

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

  • Go to your CodeCommit repository in the AWS Management Console. Click on the "Clone URL" and then click on the 'Clone HTTPS' button to copy the repository URL.

  • In the terminal, navigate to the directory where you want to clone the repository.

  • Run the following command to clone the repository

      git clone <repository-url>
    
  • Enter the username and password that we have downloaded earlier.

Task 2

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

Push the local changes to the CodeCommit repository.

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

Thank you for reading!!
~Shreya Gupta

Great initiative by the #trainwithshubham community. Thank you Shubham Londhe

#devops #90daysofdevops #aws #iam #cicdpipelineonaws