Setup Apache Web Server On AWS Using EC2, EBS & S3 from AWS CLI
Devendra Kanade
Immediate Joiner | Data Engineer | AWS Certified | Microsoft Azure Certified | Oracle Certified
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
Step 2: Create Security Group & Allow 22, 80 Ports
Step 3: Launch EC2 Instance
Step 4: Setup Apache Web Server
Install Apache Web Server Package
Step 5: Create an EBS volume of 1 GB. & Attach this volume at "/var/www/html" after create Partition , do format & Create a WebPage
(A) Create EBS Volume of 1 GB
(B) Attach EBS Volume
(C) Create Partition
(D) Format it
(E) Mount It at "/var/www/html" & Check It is mounted or not
(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
(B) Upload Image with Public Access
(C) Use Image URL In Web Page
Now search In-Browser Instance Public IP Address
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 ..!!!
?
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 !
Software Engineer @ Expert System Solution as React js & Python Django Developer | Python Enthusiast | Web Application Specialist | WEB |
2 年thankyou so much