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

Support from modules #2

Closed
cesar-rodriguez opened this issue Sep 16, 2017 · 5 comments · Fixed by #345
Closed

Support from modules #2

cesar-rodriguez opened this issue Sep 16, 2017 · 5 comments · Fixed by #345

Comments

@cesar-rodriguez
Copy link
Contributor

Terrascan should detect any modules in the terraform templates and scan them.

@Clete2
Copy link

Clete2 commented Jul 10, 2019

Is there any support in Terrascan for modules? Any workaround?

@sbalbach
Copy link
Contributor

see pull request #150

williepaul pushed a commit that referenced this issue Aug 9, 2020
kanchwala-yusuf pushed a commit that referenced this issue Aug 10, 2020
@Lachlan-White
Copy link

Is this still an open issue, having issues attempting to scan modules, as it's all we really use

@kanchwala-yusuf
Copy link
Contributor

Terrascan v1.0.0 supports terraform modules, currently only Local Paths source type is supported.

Terrascan supports terraform module traversal for IaC scanning with terrascan scan command only when -d flag is specified; -d takes path to a directory containing IaC files as an input.

Terrascan internally implements a ModuleWalker which recursively traverses through all the Local Path module sources specified in all terraform files in the directory specified with -d flag.

Terrascan would report violations for the terraform files in the modules as well.

@jdgoins
Copy link

jdgoins commented Aug 24, 2020

Is support for git repo or Terraform Registry modules in this project's roadmap?

Is there a way to direct the tool to ignore modules with unsupported sources? Most of my Terraform code points to some sort of remote module, which causes the tool to error out.

williepaul referenced this issue in williepaul/terrascan-stage Nov 11, 2020
- try #2 with cognitive complexity by moving for loop outside of the render func
- update error level of some log messages
williepaul referenced this issue in williepaul/terrascan-stage Nov 12, 2020
- try #2 with cognitive complexity by moving for loop outside of the render func
- update error level of some log messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants