In the next 4 days, We'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 :
Set up a code repository on CodeCommit and clone it on your local.
Log in to AWS Management Console and go to CodeCommit.
Create a secure repository to store and share your code. Begin by typing a repository name and a description for your repository.
Repositories Created.
You need to set up GitCredentials in your AWS IAM.
We need to set up Git credentials that AWS CodeCommit will use for authentication.
Go to the AWS IAM Console.
Create a new IAM user or choose an existing one. Add the necessary permissions for CodeCommit, typically
AWSCodeCommit_FullAccess
.In the IAM user's "Security credentials" tab, generate HTTPS Git credentials. Note down the
HTTPS Git credentials username
andpassword
.Git Credentials Created.
Use those credentials in your local and then clone the repository from CodeCommit.
Clone the Repository
Open the terminal and navigate to the directory where you want to clone the CodeCommit repository.
Run the following command, replacing
<repository-url>
with the URL of your CodeCommit repository:git clone https://<repository-url>
When prompted, enter the Git credentials (username and password) you generated in the IAM user. This will authenticate your local Git client with CodeCommit.
🔶 Task-02 :
Add a new file from local and commit to your local branch.
git status git add . # to add new file git commit -m "Added new file named as note.txt"
Push the local changes to the CodeCommit repository.
git push origin master
Now check the code commit Repositories and verify your push.
For more details watch this video.
Happy Learning :)
Stay in the loop with my latest insights and articles on cloud ☁️ and DevOps ♾️ by following me on Hashnode, LinkedIn (https://www.linkedin.com/in/chandreshpatle28/), and GitHub (https://github.com/Chandreshpatle28).
Thank you for reading! Your support means the world to me. Let's keep learning, growing, and making a positive impact in the tech world together.
#Git #Linux Devops #Devopscommunity #90daysofdevopschallenge #python #docker #Jenkins #Kubernetes #Terraform