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
- Host: GitHub
- URL: https://github.com/visaltyagi/terraform-assignment-5
- Owner: visaltyagi
- Created: 2024-04-21T10:57:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T10:06:48.000Z (over 1 year ago)
- Last Synced: 2025-02-07T20:45:18.842Z (over 1 year ago)
- Topics: apache, apache2, aws, dev, developer-tools, devops, devops-team, devops-tools, terraform
- Language: HCL
- Homepage: https://medium.com/devops-guides/install-apache-2-print-the-ip-address-of-the-instance-in-a-file-on-local-terraform-assignment-5-a1b178bdaf40
- Size: 372 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.