Hybrid Cloud
Tanuj Mathur
Digital Specialist Engineer at Infosys | RHCSA | DevOps | Amazon Web Services |
In this era of Artificial Intelligence and robots, we humans tend to relax and let these artificial human beings perform the tasks, which were done step by step by us previously. So why not let a few lines of code create an EC-2 instance, launch a web-server and host our website.
Terraform enables to automate the entire process right from launching the instance, to creating and attaching an EBS volume, installing the required services, start them and then host the website. Also, it is capable of downloading the code from the repository that was uploaded to GitHub by the developer of the website.
All this gets done with just two to three commands and all you do is have a cup of coffee and chill.
Here are the snippets of the exact code.
Happy Learning!