DEV Community

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

Posted on • Edited 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.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay