Terraform infra for CSYE 6225 GCP WEBAPP
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 .
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
Destroy infrastructure:
$ terraform destroy