Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform0.13 module "count" & "depends_on" does not work #3

Closed
teranos opened this issue Jul 3, 2020 · 1 comment
Closed

Terraform0.13 module "count" & "depends_on" does not work #3

teranos opened this issue Jul 3, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@teranos
Copy link

teranos commented Jul 3, 2020

This tool is having problems with the Beta of Terraform0.13 configurations.

INFO Running command: /Users/teranos/go/bin/terraform init 
ERROR There are some problems with the configuration, described below. 
ERROR                                              
ERROR The Terraform configuration must be valid before initialization so that 
ERROR Terraform can determine which modules and providers need to be installed. 
ERROR                                         
ERROR Error: Reserved argument name in module block 
ERROR                                              
ERROR   on ingest.tf line 4, in module "ingest": 
ERROR    4:   count = var.enable_raven_ingest ? 1 : 0 
ERROR                                          
ERROR The name "count" is reserved for use in a future version of Terraform. 
ERROR                                      
ERROR                                         
ERROR Error: Reserved argument name in module block 
ERROR                                              
ERROR   on ingest.tf line 27, in module "ingest": 
ERROR   27:   depends_on = [               
ERROR                                          
ERROR The name "depends_on" is reserved for use in a future version of Terraform. 
ERROR                                      
exit status 1
@aliscott aliscott self-assigned this Jul 3, 2020
@aliscott
Copy link
Member

aliscott commented Jul 3, 2020

@teranos thanks, I've now added initial module support in v0.2.0.

It also uses your installed terraform binary to generate the plan files, so if you have a separate terraform 0.13 binary you can use the TERRAFORM_BINARY env variable to specify it, e.g.:

TERRAFORM_BINARY=~/bin/terraform_0.13 infracost ...

Let me know if you are still seeing any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants