Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.16 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.16 KB

Terraform infra for CSYE 6225 GCP WEBAPP

Architecture Diagram

GCP Architecture Diagram

Terraform commands

Initializes the working directory containing Terraform configuration files:

$ terraform init

Rewrite Terraform configuration files to a canonical format and style:

$ terraform fmt .

Validate the configuration files in a directory:

$ terraform validate .

Building the cloud infrastructure

Create a terraform.tfvars file and include all the key value pairs as mentioned in variavles.tf Also include the gcp credential as mentioned below gcp_credentials = "C:/Users/user/Downloads/nameofgcpcredentialfile.json"

Creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure:

$ terraform plan

Apply a configuration to build infra:

$ terraform apply

Destroying the cloud infrastructure

Destroy infrastructure:

$ terraform destroy