High Availability Architecture of a Web Server using EBS, S3 & CloudFront on AWS

✔️ Prerequisites:

Now let’s move to the practical. ❗️❗️

aws ec2 run-instances

— image-id ami-038f1ca1bd58a5790

— count 1

— instance-type t2.micro

— key-name mykey

— security-group-ids sg-a5a4c183

— subnet-id subnet-7707d411

— tag-specifications=ResourceType=instance,Tags=[{Key=Name,Value=instance1}]

aws ec2 create-volume

— availability-zone us-east-1a

— size 1

— volume-type gp2

— tag-specifications=ResourceType=volume,Tags=[{Key=Name,Value=WebEBS}]

aws ec2 attach-volume

— volume-id vol-0bd8a562fef9d117c

— instance-id i-0e74a3bbbeabac766

— device /dev/sdf

mkfs.ext4 xvdf1

mount /dev/xvdf1 /var/www/html

aws s3api create-bucket

— bucket task-web-bucket

— region us-east-1

aws s3 cp aws_img.jpg s3://task-web-bucket

— acl public-read

aws cloudfront create-distribution

— origin-domain-name https://task-web-bucket.s3.amazonaws.com

Thank You for reading !! 🤗 🤗




I'm passionate learner diving into the concepts of computing 💻

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

Recommended from Medium

I even worked one summer during high school cleaning colonoscopes.

What do you need to know to work on industry-based projects(Android App Development)?

Five Pawn Chess for Children

Setting Up a Professional Layout In Unity

Function (def) in Python


Tika NERding: Getting started using Named-Entity Recognition with OpenNLP on the JVM (Scala, Java…

Some UseFul But UnderRated Flutter Plugins

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
Aditya Raj

Aditya Raj

I'm passionate learner diving into the concepts of computing 💻

More from Medium

AWS Build and Deploy Static S3 Website in Code Pipeline

CI/CD Hands-On: Github (Actions) + AWS (EC2, CodeDeploy, S3) — Part 2

Deploying a React App using Nginx on Amazon EC2 (Frontend First)

CICD Pipelines with React, AWS S3, Circleci