Getting started with Snyk Infrastructure as Code (IaC)
Get started with Snyk IaC to inspect, find, and fix issues in configuration files for Terraform, AWS CloudFormation, Kubernetes (including Helm), or Azure Resource Manager (ARM) environments.
Prerequisites
Ensure you have:
A Snyk account (go to https://snyk.io/ and sign up - see Create a Snyk account for details).
An existing Terraform, CloudFormation, Kubernetes, or ARM environment to work in.
Integrated your Git repository as for other Snyk products - see Git repository (SCM) integrations for more details.
For more details, see:
Stage 1: Import projects
Import Projects to test with Snyk by choosing repositories for Snyk to test and monitor.
Select Projects from the Snyk Web UI.
In the Add projects drop-down menu, select the tool to add the Project from (for example, GitHub).
In Personal and Organization repositories, select the repositories to use.
Click Add selected repositories to import the selected repositories into your projects.
Select View import Log to see import log results (you can scan multiple types of configuration files simultaneously).
Project import completes.
Stage 2: View configuration file issues
View results for configuration files in imported Projects by selecting Projects from the menu on the left.
If Group by targets is selected: A list of Targets is displayed. Select a Target to expand its list of Projects.
If Group by none is selected: A list of all Projects is displayed.
Each Project entry shows information for a scanned configuration file, including the number of critical, high, medium, and low severity issues found. For example:

Select a Project to see more information, including details of the issues in the configuration file:

Stage 3: View and fix config files
Act on the recommendations produced by Snyk IaC. IaC results appear as issues in each Project.
From a Project page, select an issue to see the details for that issue and specific recommendations from Snyk IaC.
Edit the configuration file to fix the issue identified, based on the recommendations, then commit the change.
Snyk automatically rescans the changed file, and you can see the change reflected in the issue display.

For more information
See Using Snyk IaC with the Web UI and Snyk CLI for Infrastructure as Code.
Last updated
Was this helpful?