๐ 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
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
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
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
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
Push the local changes to CodeCommit repository
git push <repository-url> master
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 ๐