AWS Bootcamp - Q5 - Deploy the 3 Tier application in HA Mode using ASG, EC2, and RDS

Deploy a 3 - Tier application in HA mode using AWS EC2, ASG, ALB and RDS database with standby mode.

In this fifth task, you are going to use the same 3 - tier application (JobsEzy) we deployed before but in High Availability mode for Backend and Database.

Readme of these Github repo contains instructions on how to deploy it,

  1. JobsEzy Frontend Repo - https://github.com/ezyinfra/jobsezy-ui

  2. JobsEzy Backend Repo - https://github.com/ezyinfra/jobsezy-server

Difficulty Level - Intermediate

Days to complete - 4 days

Architecture

Deploy 3 - Tier architecture using ASG, EC2 and RDSObjectives

  1. Understand what is meant by High Availability mode and concepts in AWS such as Region, Availability Zones

  2. Use Auto Scaling group with Amazon Machine Image to setup HA mode for Backend services using 2 EC2 Instances

  3. Use Service script to start the services, don't start it directly using the command.

  4. Deploy the backend services in AZ1 and AZ2 of us-east-1 region

  5. Setup Read Replicas and stand by nodes for AWS RDS in multiple availability zones

  6. Once the setup is complete, bring down one of the EC2 instance and still we should able to access the application.

AWS Services / Technologies

AWS Region, AZs

Auto Scaling Group

Application Load Balancer

Service Script

RDS

Amazon Machine Image

High level Tasks

  1. Create an EC2 instance and setup the backend services for JobsEzy. Make sure the service is running fine.

  2. Note: you should use Service script / SystemD script to start & enable the backend service

  3. Create AMI from the EC2 instance and use that in Autoscaling group

  4. Create launch template, ASG using the AMI created

  5. Create RDS with Read Replica and Standby instance enabled

  6. Make sure you have proper Application Load Balancer setup over Auto Scaling Group

  7. Once the backend and RDS services are setup, bring down one of the EC2 instance and make sure Target group is reporting unhealthy but your application should run properly.

Reference material

You can use any reference - AI, AWS Docs, Youtube videos. But the objective is you should able to complete the task and should able to explain what you did clearly.

Video Solution

Coming Soon

Share this post

Want to discuss about DevOps practices, Infrastructure Audits or Free consulting for your AWS Cloud?

Prasanna would be glad to jump into a call
Loading...