Launching an instance and creating a webpage using AWS Cloud by Terraform

Task description:

Mahek Batra
2 min readJul 20, 2021

✍️ Write terraform code to configure the following things on AWS -
📍Launch One VPC in ap-south-1 having name as *lwterra*
📍 Create EC2 instance in this VPC
📍Launch Webserver using apache
📍Create a index.html file having content about your skills.
📍Start the webserver on port 80
📍 Create the snapshot of volume attached with the EC2 instance.
📍Destroy all the resources created in this task.
📍Write blog/article/video explaining the task.

Terraform

Terraform is an open-source infrastructure as code software tool created by HashiCorp. Users define and provide data center infrastructure using a declarative configuration language known as HashiCorp Configuration Language (HCL), or optionally JSON.

Terraform abstracts out the interaction with various infrastructure services (AWS, Digital Ocean, OpenStack, etc) and provides a unified configuration format for it.

AWS Cloud

Amazon web service is a platform that offers flexible, reliable, scalable, easy-to-use and cost-effective cloud computing solutions.

AWS is a comprehensive, easy to use computing platform offered Amazon. The platform is developed with a combination of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings

EC2(Elastic Compute Cloud)

EC2 is a virtual machine in the cloud on which you have OS level control. You can run this cloud server whenever you want.

Screenshots of the task

GitHub url for the code:

https://github.com/mahekbatra/terraform_task_5

--

--

Mahek Batra

BE 3rd year || Information Technology|| Dedicated|| Passionate||