Support
API docs
Product updates
Sign up for free
Search…
Snyk User Documentation
Introducing Snyk
Getting started
Snyk CLI
Snyk API
Snyk for IDEs
Snyk Apps
Snyk Integrations
SNYK PRODUCTS
Snyk Open Source
Snyk Code
Snyk Container
Snyk Infrastructure as Code
Getting started with Snyk Infrastructure as Code (IaC)
Using Snyk IaC via web
Scan Terraform files
Scan CloudFormation files
Scan Kubernetes configuration files
Scan ARM configuration files
Snyk Infrastructure as code for self-hosted git (with Broker)
Snyk CLI for Infrastructure as Code
Jira Integration
View Infrastructure as Code issue reports
Build your own custom rules
Install the SDK
Getting started with the SDK
Use IaC custom rules with CLI
Using a local custom rules bundle
Using a remote custom rules bundle
Integrating IaC custom rules within a pipeline
SDK Reference
Detect drift and manually created resources
Share CLI results with the Snyk Web UI
USING SNYK
Snyk Broker
User and group management
Fixing and prioritizing issues
Reports
More Snyk Tools
SNYK INFO
Disclosing vulnerabilities
How Snyk handles your data
SNYK TUTORIALS
Getting Started
Amazon Web Services
Atlassian
CircleCI
Docker
Dynatrace
GCP
GitHub
Microsoft Azure
Oracle Cloud Infrastructure
Red Hat
SpringOne
Powered By
GitBook
Use IaC custom rules with CLI
Ensure you followed the steps in
Getting Started with the SDK
to learn how to generate a bundle of your rules.
With Snyk IaC, you can test your configuration files from the CLI using your custom rules.
There are two ways to use your built bundle:
​
Using a local custom rules bundle
, stored in your disk.
​
Using a remote custom rules bundle
, by configuring a remote OCI Registry, in which your custom rules bundle is already stored.
Ready to get started with Snyk?
Sign up for free!
​
Previous
Examples of custom rules
Next
Using a local custom rules bundle
Last modified
1mo ago
Export as PDF
Copy link
Edit on GitHub