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

terraform init issues #14

Open
alme5 opened this issue Oct 20, 2019 · 1 comment
Open

terraform init issues #14

alme5 opened this issue Oct 20, 2019 · 1 comment

Comments

@alme5
Copy link

alme5 commented Oct 20, 2019

Whenever I try to run terraform init I get the following error from the complete_c2.tf file :

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/letsencrypt/create-cert-dns/variables.tf line 1, in variable "provider":
1: variable "provider" {

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

Terraform v0.12.12

provider and count seems to be reserved keywords on teraform 0.12+. I successfully changed the count variable to something else and also on all the other files and seems to work but I cannot do the same for the variable provider as it seems to be breaking things.

Any help?

@rotarydrone
Copy link

Also having this issue. Dropping this for reference on the reserved variable names:

https://www.terraform.io/upgrade-guides/0-12.html#reserved-variable-names

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants