High Availability Architecture with AWS CLI

  • Creating the EBS storage and Document Root(/var/www/html) mounting on it
  • Storing the Static object in the S3
  • Setting up the 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.

1. Configure the AWS and Provide Credentials.

2. Launch an EC2 Instance.

3. Connect to Instance and Install Apache Web Server in it.

4. Create EBS Volume in the same region as Instance.

5. Attach the volume to the EC2 Instance.

6. Create the Partition and Format it.

7. Mount the Volume in the root directory of the webserver, i.e. /var/www/html.

8. Create an S3 Bucket.

9. Copy any Image in the bucket.

10. Create a Cloudfront Distribution with the above-created bucket.

11. Write HTML Code in Instance using link of image from Cloudfront Distribution.

12. Start the service.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Location Search Autocomplete in Flutter

Hyperautomation — riding the next wave of automation

Document Scanner from Scratch with Python.

Made by Author. OpenCV logo on top of a real scanner. Original photo by Mahrous Houses on Unsplash.

Develop, Deploy and Deal with DevOps!

Learn by doing

Working with the ecosystem

BEGINNERS TIPS: Rails Generators

Chi-square test of independence in R

Chi-square test of independence in R How to test independence between two qualitative variables

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Karan Agrawal

Karan Agrawal

More from Medium

Amazon selling partner API (SP-API manually) integrates step by step (Part 1)

Deploy Backend Application to AWS ECS with Application Load Balancer — Step by Step Guide (Part 3)

Using CloudFormation to create an Auto Scaling Group of EC2 Instances

AWS scenario-1 : how to Create a Static Website with S3 & Hosting a Static Website on CloudFront