Skip to content

Celidor/gcp-network

Repository files navigation

gcp-network

  • VPC in Google Cloud Platform
  • subnets in two regions
  • virtual machine
  • firewall rules

Alt text

set up project and credentials

  • create GCP project
  • create terraform service account with appropriate IAM role for deployment
  • download keys, save and include path to file in bash profile, e.g.
export GOOGLE_CLOUD_KEYFILE_JSON="/Users/username/gcp/serviceaccount.json"
  • start new shell
  • enable compute-engine API using GCP console
  • duplicate the terraform.tfvars.example file
  • rename without the .example suffix and enter your GCP project name

requirements

  • Terraform v 0.12.x

deploy

terraform init
terraform workspace new dev
terraform plan
terraform apply

About

VPC, subnets and virtual machine in Google Cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages