Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions examples/high-available-web/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
# Terraform script for 3 Tier Application deployment on G42 Cloud

This is a sample terraform script to automate following Infrastructure components on G42 Cloud to enable provisioning of 3-tier application
- VPC
- Subnet
- Security Group
- ECS
- RDS
- ELB
- EIP
The script contains 2 parts
- Variable defintion: To define the varibles that will be used in the main terraform script
- Main.tf: This is the core script which automate the provising of above G42 CLoud Infra structure
- Main terraform script to automate the provisioning for each services


How to run the script ?

1. Terraform installation - this can be done on local laptop or on an ECS
2. Copy the script to the terrafrom working directory
3. Initialize the working directory using the command "terraform init"
4. Verify the script using "terraform plan"
5. Deploy the Infra using "terraform apply"
6. To enable debug mode using the command "TF_LOG=DEBUG TF_LOG_PATH=./log terraform apply"
Install terraform from the link - https://developer.hashicorp.com/terraform/downloads
Copy the script to terraform working directory - https://github.com/g42cloud-terraform/terraform-provider-g42cloud/tree/main/examples/high-available-web
Initialize the working directory using the command "terraform init"
Verify the script using "terraform plan"
Deploy the Infra using "terraform apply"