0% found this document useful (0 votes)
14 views1 page

Microservice CICDPipeline

The document outlines the steps to build microservices and a CI/CD pipeline using AWS. It covers creating a development environment, configuring microservices in Docker, setting up ECR repositories and ECS clusters, creating target groups and an Application Load Balancer, and configuring CodeDeploy and CodePipeline for deployment. Additionally, it includes instructions for adjusting microservice code to trigger pipeline runs and scaling services.

Uploaded by

Ananthi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Microservice CICDPipeline

The document outlines the steps to build microservices and a CI/CD pipeline using AWS. It covers creating a development environment, configuring microservices in Docker, setting up ECR repositories and ECS clusters, creating target groups and an Application Load Balancer, and configuring CodeDeploy and CodePipeline for deployment. Additionally, it includes instructions for adjusting microservice code to trigger pipeline runs and scaling services.

Uploaded by

Ananthi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Building Micro-services and a CI/CD Pipeline with AWS

1. Create a development environment and check code into a Git repository

Create an AWS Cloud9 IDE as your work environment. Copy the application code to your IDE. Create
working directories with starter code for the two microservices. Create a Git repository for the
microservices code and push the code to CodeCommit.

2. Configuring the application as two microservices and test them in Docker containers

Adjust the AWS Cloud9 instance security group settings. Modify the source code of the customer
microservice. Create the customer microservice Dockerfile and launch a test container. Modify the source
code of the employee microservice. Create the employee microservice Dockerfile and launch a test
container. Adjust the employee microservice port and rebuild the image. Check code into CodeCommit

3. Create ECR repositories, an ECS cluster, definitions, and AppSpec files

Create ECR repositories and upload the Docker images. Create an ECS cluster and CodeCommit
repository to store deployment files. Create definition files for each microservice and register them with
Amazon ECS. Create AppSpec files for CodeDeploy for each microservice and Update files and check
them into CodeCommit

4. Creating target groups and an Application Load Balancer

Create four target groups, a security group and an Application Load Balancer, and configure rules to
route traffic

5. Creating two Amazon ECS services

1: Create the ECS service for the customer microservice

2: Create the Amazon ECS service for the employee microservice

6. Configuring CodeDeploy and CodePipeline

Create a CodeDeploy application and deployment groups. Create a pipeline for the customer
microservice and test the CI/CD pipeline for the customer microservice. Create a pipeline for the
employee microservice and Test the CI/CD pipeline for the employee microservice. Observe how
CodeDeploy modified the load balancer listener rules

7. Adjusting the microservice code to cause a pipeline to run again

Limit access to the employee microservice. Adjust the UI for the employee microservice and push the
updated image to Amazon ECR. Confirm that the employee pipeline ran and the microservice was
updated. Test access to the employee microservice. Scale the customer microservice

You might also like