-
Notifications
You must be signed in to change notification settings - Fork 503
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
Failed to read module directory #332
Comments
Hi @brenwhyte, thanks for the bug report. Could you provide a bit more info about your setup? When you ran the command above, what was your CWD? Thanks, |
Hi @brenwhyte , The way terrascan works is, it reads all the terraform configuration files in the provided directory (in this case it's $PWD), and if there are any module calls (only local path source is currently supported) in any of the terraform files, those module paths are traversed, and all the tf files in that module are read as well. If these traversed modules have any more module calls those are traversed as well and so on... It seems that there is a module call with If this is not the case, can you please share more information like your PWD, tf files with directory structure etc. Thanks |
I have the same issue. I think that the module @brenwhyte is trying to target is a one provided by a public Terraform registry, referencing it as for the documentation (so, not a local one). For instance I'm using the
The fact that only local paths are supported is the answer to this issue I think. Maybe it could be checked if the module Thank you |
I'm a little confused, #345 has been merged but but I'm seeing much the same error as above so, remote terraform modules are not actually supported? I'm running |
Description
On Mac, installed via brew.
Linux, terrascan added to path
What I Did
Actual repo path with tf files is
/Users/bwhyte/git_repos/infa/terraform/aws/test/eks/
so I'm not sure why it's tagging on terraform-aws-modules/eks/awsIf i create the x2 "missing" folder I get a working scan.
The text was updated successfully, but these errors were encountered: