Using a local custom rules bundle

Where the examples show bundle.tar.gz you can replace this with your bundle name. For example,bundle-v1.0.0.tar.gz or ./bundles/team-bundle.tar.gz

In your Project folder, run the following command:

snyk iac test --rules=bundle.tar.gz

The configuration scan results now include issues from both the default Snyk rules, and your custom rules. See al Understanding configuration issues.

Troubleshooting a local custom rules bundle

Enable debug logs by running the command with a -d flag:

snyk iac test --rules=bundle.tar.gz -d

Some possible problems include:

  • Providing an incorrect path to the bundle or a path to a non-existent bundle. Make sure the path passed to the --rules flag can be accessed from the current location.

We were unable to extract the rules provided at: ./invalid/location/bundle.tar.gz
  • Providing a corrupted or invalid bundle. Make sure you have generated your bundle by following the instructions at Getting Started with the SDK.

We were unable run the test. Please run the command again with the `-d` flag and contact [email protected] with the contents of the output.

If you have found a discrepancy that you cannot explain, contact Snyk Support.

Last updated

Was this helpful?

#4580: CLI: help, Ignore - support ticket 49463-add Iac examples

Change request updated