bregman-arie / devops-exercises

Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions
Other
66.86k stars 14.94k forks source link

Added Solution for AWS - Launch EC2 Web Instance Using Terraform #10260

Closed kranthi9558 closed 5 months ago

kranthi9558 commented 9 months ago

This pull request adds Terraform configuration files to launch an EC2 instance on AWS with specific requirements:

Launches an Amazon Linux 2 instance with 1 vCPU and 1 GiB memory. Deletes the instance storage upon termination. Installs and starts the Apache HTTP Server (httpd) on the instance. Sets the content of /var/www/html/index.html to "I made it! This is awesome!". Tags the instance with "Type: web" and names it "web-1". Allows HTTP traffic (port 80) from anywhere through a configured security group. This configuration is useful for quickly provisioning a basic web server on AWS using Terraform.