vmware-archive / terraforming-gcp

use terraform, deploy yourself a pcf
Apache License 2.0
71 stars 87 forks source link

variables.tf uses names that are reserved in terraform 0.12 #149

Open cjnosal opened 4 years ago

cjnosal commented 4 years ago

terraform 0.12 made count a reserved name (among others: https://www.terraform.io/upgrade-guides/0-12.html#reserved-variable-names)

terraform init using terraform 0.12.13 and terraforming-gcp 0.95 fails with:

Initializing modules...
There are some problems with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.

Error: Invalid variable name

  on ../modules/load_balancer/variables.tf line 23, in variable "count":
  23: variable "count" {

The variable name "count" is reserved due to its special meaning inside module
blocks.

Error: Reserved argument name in module block

  on ../modules/pks/lb.tf line 7, in module "api":
   7:   count   = 1

The name "count" is reserved for use in a future version of Terraform.