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.
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?