This module implements the Snyk CLI Extension for IaC workflows.
snyk iac test
You can exclude files or directories from IaC scans using the --exclude flag. The value is a comma-separated list of paths relative to the input directory. Both of the following are supported:
snyk iac test --exclude=dir-to-skip,subdir/file.tf
snyk iac test --exclude "dir-to-skip,subdir/file.tf"Only user-provided exclude patterns are applied by this flag.