Skip to content

CSYE-6225-hemanthnvd/tf-gcp-infra

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages