Count is reserved for use in future version of terraform
sarveshhh opened this issue · 1 comments
sarveshhh commented
Summary
When I run terraform plan
, it fails with below error:
Error: Reserved argument name in module block
on .terraform/modules/eks-jx/modules/health/main.tf line 2, in module "jx-health":
2: count = !var.is_jx2 && var.install_kuberhealthy ? 1 : 0
The name "count" is reserved for use in a future version of Terraform.
Steps to reproduce the behavior
Clone the module and Run terraform plan
Expected behavior
Should bring up the cluster.
Actual behavior
Fails with error above.
Terraform version
0.12.24
The output of terraform version
is:
Terraform v0.12.24
+ provider.aws v3.25.0
+ provider.helm v2.0.2
+ provider.kubernetes v1.13.3
+ provider.local v1.4.0
+ provider.null v2.1.2
+ provider.random v2.3.1
+ provider.template v2.2.0
Module version
no version specified. So should be latest.
Using:
module "eks-jx" {
source = "jenkins-x/eks-jx/aws"
}
Operating system
Mac OS Catalina
sarveshhh commented
When used v1.8.0 of module, Terraform apply
works fine.