Create High Availability Architecture with AWS CLI

RUBEL AGRAWAL
Oct 25, 2020

--

The architecture includes-

  • Webserver configured on EC2 Instance
  • Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
  • Static objects used in code such as pictures stored in S3
  • Setting up a Content Delivery Network using CloudFront and using the origin domain as an S3 bucket.
  • Finally, place the Cloud Front URL on the web app code for security and low latency.

In this story, there are 5 points we need to cover. The first three points are covered in the below-mentioned story:

Setting up a CDN using Cloudfront and using the origin domain as an S3 bucket

aws cloudfront create-distribution — origin-domain-name webservercdn.amazonaws.com — default-root-object rubel.html

create cloud front distribution

Now use the CloudFront URL on the web ap code instead of the bucket URL

Cloud Front URL
using cloud front URL on the web app code

Now the complete architecture is ready with Cloud Front.

#awscloud #awscli #aws #vimaldaga #righteducation #educationredefine #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righeudcation #awsbylw

--

--

RUBEL AGRAWAL
RUBEL AGRAWAL

No responses yet