Setup Apache Web Server On AWS Using EC2, EBS & S3 from AWS CLI

Setup Apache Web Server On AWS Using EC2, EBS & S3 from AWS CLI

Today, I am going to write an article on Creation High Availability Architecture with AWS CLI.

Task Description: Task includes a web server 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.

So that we do it step by step as follows:

Step 1: Create a key pair

No alt text provided for this image

Step 2: Create Security Group & Allow 22, 80 Ports

No alt text provided for this image
No alt text provided for this image

Step 3: Launch EC2 Instance

No alt text provided for this image

Step 4: Setup Apache Web Server

Install Apache Web Server Package

No alt text provided for this image

Step 5: Create an EBS volume of 1 GB. & Attach this volume at "/var/www/html" after create Partition , do format & Create a WebPage

No alt text provided for this image

(A) Create EBS Volume of 1 GB

No alt text provided for this image

(B) Attach EBS Volume     

No alt text provided for this image

(C) Create Partition

No alt text provided for this image
No alt text provided for this image

(D) Format it

No alt text provided for this image


(E) Mount It at "/var/www/html" & Check It is mounted or not

No alt text provided for this image

(F) Create Web Page ("index.html")


Step 6: Create S3 Storage, Upload an image & Give Public Permission so, WebPage which is created in the previous step can use this image

(A) Create Bucket

No alt text provided for this image

(B) Upload Image with Public Access

No alt text provided for this image

(C) Use Image URL In Web Page

No alt text provided for this image

Now search In-Browser Instance Public IP Address

No alt text provided for this image

Our Web server is working fine

→ Follow me on Linkedin for more Article’s on Research based and integration of new new tools and technologies .

In Upcoming days , I will be sharing many article’s on Integrating multiple tools and technologies like Cloud Computing, DevOps, Big Data Hadoop, Machine Learning etc..

For Further Query or Suggestion’s Feel Free to Connect with me On Linkedin .

I Hope you have learn something new from this article

If you like it then Like & Share ...

Thank you EveryOne For reading ..!!!

?

Levan Morbedadze

DevOps Engineer | Orchestrating Microservices for Reliable, High-Performance Systems

2 年

hey where i can see more tasks like this, i finished this one and wordpress also and loved both, thanks a lot !

Muhammad Saud Bhatti

Software Engineer @ Expert System Solution as React js & Python Django Developer | Python Enthusiast | Web Application Specialist | WEB |

2 年

thankyou so much

要查看或添加评论,请登录

Devendra Kanade的更多文章

社区洞察

其他会员也浏览了