Automation
Before starting, first we should know why we need Automation? Automation leads to faster processing of voluminous tasks and reduced turnaround timelines. Automating business processes allows enterprises to achieve more results with fewer efforts.
Let’s see how to Integrate AWS cloud Technology with Python.
In this Blog we are gonna create High Available Web server with Amazon S3, EBS and CloudFront and see the difference.
Let’s get into it..
Firstly, we will create EC2 Instance and after creating we will configure Apache webserver using command
yum install httpd -y
after installing webserver we will start webserver by following command
systemctl start httpd
to create webpage we have to create it in to specific folder i.e. inside /var/www/html and write our code inside index.html and place all our content of web page in this folder
the html code is
our webpage look like this
Our image is stored in local server, let’s store it on S3 bucket
after storing our image we get the link, now we are gonna place the link in .html
Now, instead of image search from local machine it retrieves from S3 bucket and loads little faster in the web browser as compare to image in the server. But still it takes a little bit of more time to load in web-browser let’s make it more faster using CloudFront. Launching CloudFront Distribution -
Now, including the Distribution link in the .html file
Now, it is faster than all other.
Let’s assume that our server is destroyed, in order create backup we have to store our web-pages, to get that we will create EBS volume and attach to /var/www/html folder
EBS volme created and attached to the EC2 instance
Now mounting it to /var/www/html folder
That is it, our fully managed webserver is configured
That’s all from my side.
Any query & suggestions, most welcome.
Keep Learning, keep growing.