[BUG] Is there anyway to handle terraform resources in nested child_modules
?
#359
Open
1 of 5 tasks
Labels
bug
Something isn't working
Kind of proposals
Describe the problem
Currently, I am working to set up Fastly Deliver service with Terraform. My terraform project's directory structure is like below:
In the above directory structure, falco does not display any result in
terraform -chdir terraform/env/${env} show -json planned.out | falco -vv terraform lint
.In my understanding, terraform will generate fastly resources in
planned_values.root_module.child_modules.child_modules.resources
on the output json by commandterraform -chdir terraform/env/${env} show -json planned.out
with the above terraform structure because of the module dependencyenv
->app
->common
. In other word, fastly resources will be generated in nested child_modules.falco/terraform/terraform.go
Line 154 in 0eebb52
Currently, falco seems not to be able to handle nested child_resources as the code implies.
Is this behavior a bug? or Is there anyway to handle nested child_modules?
VCL code that cause the problem / reproduceable
I can create the reproduction repository or provide with the json generated by
terraform show -json
if you want.Expected behavior
falco can handle nested child_modules
Desktop (please complete the following information)
required
The text was updated successfully, but these errors were encountered: