Terraform templates for various resources.
bucket_for_static_objs | 11 months ago | ||
common_template | 11 months ago | ||
vpc_with_subnetworks | 11 months ago | ||
.gitignore | 11 months ago | ||
README.md | 11 months ago |
Terraform templates for various resources.
Place main.tf
and variables.tf
in a directory named terraform
within the project directory on the local system.
Update variable names in variables.tf
gcloud auth application-default login
terraform init
terraform apply
To destroy resources:terraform destroy
(I think ...)
provider "google" { project = var.project_id region = var.region } data "google_compute_zones" "this" { region = var.region project = var.project_id } locals { type = ["public"] zones = data.google_compute_zones.this.names }
Creates a VPC named with one or more subnets (set count) in for .
Ref: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket