byt3bl33d3r / Red-Baron

Automate creating resilient, disposable, secure and agile infrastructure for Red Teams
GNU General Public License v3.0
373 stars 73 forks source link

terraform init issues #14

Open alme5 opened 5 years ago

alme5 commented 5 years ago

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 commented 4 years ago

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