An open API service indexing awesome lists of open source software.

https://github.com/visaltyagi/terraform-assignment-5

How to Install the Apache 2 & Print the IP Address of the Instance in a File on Local: Terraform Assignment 5
https://github.com/visaltyagi/terraform-assignment-5

apache apache2 aws dev developer-tools devops devops-team devops-tools terraform

Last synced: about 1 month ago
JSON representation

How to Install the Apache 2 & Print the IP Address of the Instance in a File on Local: Terraform Assignment 5

Awesome Lists containing this project

README

          

# Terraform-Assignment-5
Terraform-Assignment-5

**For the detailed solution to this assignment, click this link:** https://medium.com/devops-guides/install-apache-2-print-the-ip-address-of-the-instance-in-a-file-on-local-terraform-assignment-5-a1b178bdaf40

**Step 1:** Destroy the previous assignment resources using the command: terraform destroy

**Step 2:** Assignment 4 Resources will be successfully deleted.

**Step 3:** Create an install-apache2.sh & paste the command to install the apache2 using Terraform.

**Step 4:** Create a "main.tf" file, and paste the script code here.

**Step 5:** Initialize terraform using the command: terraform init

**Step 6:** Create a plan using the command: terraform plan

**Step 7:** Use this command to install apache2 & print the local IP address: terraform apply

**Step 8:** Assignment-5 Instance will be successfully created & go to AWS console. Paste the IP address in browser local address bar & Apache2 page will be shown.