DEV Community

Cover image for How to create a single-tier highly available architechture on AWS
Raji Risikat Yewande
Raji Risikat Yewande

Posted on • Updated on

How to create a single-tier highly available architechture on AWS

Scenario

This tutorial would take you on the process of easily creating a highly available single tier architecture on AWS.

Deployment architecture.


Figure 1: Single tier, fault resistant, highly available AWS Architecture

Figure 1 explains the entire architecture setup which includes:

  • A Custom VPC with two Availability Zones for High Availability
  • Each Availability Zone has a public subnet and a private subnet.
  • There are two EC2 instances, which are in private subnets and the Application Load Balancer(ALB) is attached to two public subnets as expected.
  • Two Network Address Translation(NAT) Gateways are attached to the the two public subnets and they allow Internet traffic to the instances in the private subnets via an associated Elastic IP
  • ALB is coupled with Auto Scaling
  • There is one Target Group connecting both the EC2 instances
  • EC2 Apache installation happens with the user data fromm the Auto Scaling Launch template
  • CloudFormation, an Infrasture as code tool would be used to automatically Provision the servers and Network Infrastructure

Essentials:

  • An AWS Account with IAM admin Priviledges
  • Git installed for cloning repository

Procedures

  • Navigate to the AWS Console or aws CLI
  • If youre using the console, search for cloudformation, Click on Create a new stack.
    • Two Stacks would be needed for this set up
  • Click this cloudformation and follow instructions on the readme file.

Let me know in the comment section if you have any questions, I'll be happy to oblige.

Top comments (0)