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

Scan for terraform doesn't error out if a module definition refers to a directory with no tf files #782

Closed
patilpankaj212 opened this issue May 13, 2021 · 0 comments · Fixed by #793
Assignees
Labels

Comments

@patilpankaj212
Copy link
Contributor

  • terrascan version: 1.6.0
  • Operating System: All

Description

If a module definition in a terraform file has source as a local directory which doesn't contain any tf config files, scan should result in an error.

What I Did

terrascan scan -i terraform -d <dir> --non-recursive

The directory contains a tf file that defines a module that has a local source.

module "ec2" {
  source = "../../"

  instance_count = 1

  ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants