Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

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

Open
cjnosal opened this issue Nov 11, 2019 · 0 comments
Open

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

cjnosal opened this issue Nov 11, 2019 · 0 comments

Comments

@cjnosal
Copy link

cjnosal commented Nov 11, 2019

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants