Support
API docs
Product updates
Sign up for free
Search
⌃K
Links
User Docs
Getting started
Integrate with Snyk
Scan application code
Scan containers
Scan cloud deployments
Supported providers - IaC and Cloud
Snyk Infrastructure as Code
Getting started with Snyk Infrastructure as Code (IaC)
Using Snyk IaC with the Web UI
Scan Terraform files
Scan CloudFormation files
Scan Kubernetes configuration files
Scan ARM configuration files
Scan Serverless 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
Parsing an input file
Writing a rule
Testing a rule
Bundling rules
Pushing a bundle
Custom Rego Builtins
Examples of custom rules
Use IaC custom rules with CLI
Integrating IaC custom rules within a pipeline
SDK Reference
Detect drift and manually created resources
Share CLI results with the Snyk Web UI
Disable IaC Scans per organization
Integrated Infrastructure as Code
Snyk Cloud
Manage issues
Snyk admin
Snyk CLI
Snyk API
More info
Guides
Powered By
GitBook
Getting started with the SDK
To get you started with the SDK, you will learn how to:
1.
Parse a fixture file
in order to help you understand how to write a rule
2.
Write a rule with the SDK
using Rego
3.
Add unit tests for the rules you’ve written
to verify your rules
4.
Build a bundle containing your custom rules
so that you can
use it with the Snyk CLI
5.
Push the bundle containing your custom rules to a container registry
so that you can
enforce its usage with the Snyk CLI
Development to Distribution Workflow
Previous
Install the SDK
Next
Parsing an input file
Last modified
5d ago