🔰 Create High Availability Architecture with AWS CLI 🔰

Vanshita Mittal
4 min readOct 27, 2020

--

✔ 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.

✔ CloudFront :

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.

✔ 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.

Task Description 📄

🔰 Create High Availability Architecture with AWS CLI 🔰

🔅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.

STEPS :

  1. Login into aws account using CLI

2. Create a Key Pair using this command

3. Now , create security group -

Security group is created ->

4. Now , launch ec2 instance using above created key pair

5. Now , to attach an external harddisk using EBS volume

After creating this volume , attach it with the instance

6. Now we need to do the partition on that volume.

Mount it with folder /var/www/html

7. Now , create S3 bucket and upload image in it .

After creating S3 bucket , upload image and make it publicly accessable.

8. Now , create cloudfront for low latency .

Now , webpage :

⭐⭐Task is Successfully completed⭐⭐

--

--

No responses yet