- VPC in Google Cloud Platform
- subnets in two regions
- virtual machine
- firewall rules
- 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
- Terraform v 0.12.x
terraform init
terraform workspace new dev
terraform plan
terraform apply