Creating High Availability Architecture with AWS CLI | CloudFront | S3 | EBS

Mohammed Abdul Basith
3 min readNov 6, 2020

--

What is AWS ?

Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 175 fully featured services from data centers globally. Millions of customers — including the fastest-growing startups, largest enterprises, and leading government agencies — are using AWS to lower costs, become more agile, and innovate faster.

What is AWS CLI ?

The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

What is EBS ?

Amazon Elastic Block Store (EBS) is an easy to use, high performance block storage service designed for use with Amazon Elastic Compute Cloud (EC2) for both throughput and transaction intensive workloads at any scale.

What is S3 ?

Object storage built to store and retrieve any amount of data from anywhere. Get started with Amazon S3. Request more information. Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance.

What is Cloud-Front ?

Amazon CloudFront is a fast content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to customers globally with low latency, high transfer speeds, all within a developer-friendly environment.

So lets begin this task !!

*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 Content Delivery Network using CloudFront and using the origin domain as S3 bucket.

-> Finally place the Cloud Front URL on the webapp code for security and low latency.

So, lets launch the EC2 instance.

Then next step is to partition the volume

Volume Attachment
  • Now we will need to mount the destination using # mount /dev/xvdf1 /var/www/html
  • Next we will be creating the S3 Bucket
Storing the image file in the bucket
  • Now the CloudFront creation is to be done

Now just by using our html code for designing and setup of our page can be done . Also give the image source to appear on your page .

Thank You . Hope you liked it !

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response