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

StarLaunch Incoming Events Log

Design Patterns a Deep Dive Into…

PreSecurity | What is Networking | TryHackMe

Spring boot with Apache Kafka

A brief guide to Animations in CSS

A day in the life: (Ryan Cooke, Head of Technology, US, N26 inc.)

Troubleshooting tips for the uncommon problems of IBM Cloud Pak for Data 2.5 (CPD) Install

Agile Actors Learning From Home: 5 Upcoming Virtual Sessions

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


Install MongoDB on EC2 Instance — Solved Connection Issue From Public DNS — ScanSkill

Working in AWS: Creating Users and S3 Buckets

How to Create an EC2 Instance with an Apache Server using the AWS CLI