🌟 Introduction
Continuous Integration and Continuous Deployment (CI/CD) on AWS (Amazon Web Services) involves automating the process of building, testing, and deploying software applications. This ensures that changes to your codebase are integrated smoothly and deployed to production efficiently. AWS offers a range of services and tools that can be used to implement a CI/CD pipeline
We'll be learning to make a CI/CD pipeline on AWS with these tools.
CodeCommit
CodeBuild
CodeDeploy
CodePipeline
S3
IAM (user and role)
🌟 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.
🌟Follow these steps to perform this hands-on
🔱TASK 1: Create an AWS CodeCommit repository
✔Step 1: Go to AWS Console and search CodeCommit
✔Step 2: Create Repository
Go to the CodeCommit from the AWS search box. Click on Create repository
.
Enter the details like the "Repository name" and "Description" and click on Create
button.
Click on the clone URL that is "HTTPS". Now set iam user for "HTTPS Git Credentials for AWS CodeCommit".
The repository will be created successfully as shown below.
✔Step 3: Uploading some files
select Clone URL type such as "Clone HTTPS".
First, add the file and then upload your file. You only select and upload only one single file at a time only.
Your file output is present in the repository.
🔱TASK 2: Set up GitCredentials in AWS IAM
✔Step 1: Create a new user
First, create a new user and then click on the user.
Provide a username for the new user.
Provide a custom password for the new user.
Attaching policies directly, or customizing their access.
You get a Username and custom Password for signing into the AWS Management Console.
✔Step 2: Setup HTTPS Git Credentials
Navigate to the "Security Credentials".
Come down to the "HTTPS Git Credentials for AWS CodeCommit". Click on Generate credentials
.
Make sure to download these credentials in the system for further use.
🔱TASK 3: Perform Git-related Operations
✔Step 1: Login into IAM user
Login to your IAM user and check your code commit repository.
Search for code commit service in the "Mumbai" region.
Here you get your repository created in the root account.
✔Step 2: Clone "demo_repo_codecommit" repository
Open the Git Bash Terminal. Paste here cloned HTTP URL
and enter.
Enter your credentials and set up the connection between your local repository and the code commit repository.
Clone repository from code commit. You get your "deploy_static_page_play.yml" file.
Add some more files to your local repository and perform the git operations task.
After adding some more files to your local repository check your status of the local repository.
Perform the adding operation and then check your local repository status. Now you tracked your files.
Push your files from the local repository to the code-commit repository.
Your files uploaded successfully and are present in the code commit repository, which is shown below.
\...................................................................................................................................................
The above information is up to my understanding. Suggestions are always welcome. Thanks for reading this article.😊
#aws #cloudcomputing #codecommit #github #git #Devops #TrainWithShubham #90daysofdevops #happylearning
Follow for many such contents: