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

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

ยท

3 min read

TABLE OF CONTENTS

What if I tell you, in the next 4 days, you'll be making a CI/CD pipeline on AWS with these tools:-

  • CodeCommit

  • CodeBuild

  • CodeDeploy

  • CodePipeline

  • S3

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-01 : Create and Configure a CodeCommit repository

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

    1. Navigate to the CodeCommit section of AWS console.

    2. Create a repository by giving a name and description.

    3. A repository reddit-app is now created.

  • You need to setup GitCredentials in your AWS IAM.

    1. Navigate to the IAM section and create a user and group as we have seen in our previous blog this week as a part of AWS tasks.

    2. Provide the permission to the group for CodeCommit.

    3. Then, navigate to the credential section of the user and generate username and password in order to login to the CodeCommit.

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

    1. Navigate to the created repository and select add file option to create a file manually.

    2. Provide the content of the file along with the commit information.

    3. You can now view the newly created file. Then copy the repository URL.

    4. Open the server terminal and use the git clone command to clone the repository from CodeCommit to the server.

    5. You can view the files now in the server.

Task-02 : Integrate the repository with server

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

    1. Create a new file in the server.

    2. Check the status of the file and add the file to staging area.

    3. Now, commit the file in local repository.

  • Push the local changes to the CodeCommit repository.

    1. Push the changes from the local repository to the CodeCommit repository.

    2. You can now view the new file in CodeCommit repo.

    3. Verify the content.

Thanks for reading my article. Have a nice day.

WRITTEN BY Biswaraj Sahoo --AWS Community Builder | DevOps Engineer | Docker | Linux | Jenkins | AWS | Git | Terraform | Docker | kubernetes

Empowering communities via open source and education. Connect with me over linktree: linktr.ee/biswaraj333

ย