Getting started with Snyk IaC in the Web UI (Integrated IaC)

This article describes a process using the Snyk Web UI. For details of using Integrated IaC with the Snyk CLI, see Test your IaC files with Snyk CLI.

Use Snyk Integrated Infrastructure as Code to inspect, find, and fix issues in cloud configuration files for Terraform and AWS CloudFormation and Azure Resource Manager (ARM) in your Git repositories, with support for Kubernetes coming soon.

You can test your IaC files in Git repositories found via SCM integrations with Integrated IaC, much like you would with Current IaC. There are some differences, which are summarized in the following table.

Current IaC support

Integrated IaC support

Terraform (single file)

Yes

Yes

Terraform (modules)

No

Yes

Terraform (variables)

No

Yes

CloudFormation

Yes

Yes

Azure Resource Manager

Yes

Yes

Kubernetes manifests

Yes

Coming soon

Helm charts

Yes

Coming soon

Prerequisites

To start using Integrated IaC, you need the following:

Stage 1: Import projects

Import Projects to test with Snyk by choosing repositories for Snyk to test and monitor.

  1. Select Projects from the Snyk Web UI.

  2. In the Add projects drop-down menu, select the tool to add the Project from (for example, GitHub).

  3. In Personal and Organization repositories, select the repositories to use.

  4. Click Add selected repositories to import the selected repositories into your projects.

  5. Project import completes.

Stage 2: View Integrated IaC projects

On the Projects page, navigate to the appropriate target (git repository) that contains IaC files for Snyk to test. You will see a single "Infrastructure as Code issues" project - Snyk Integrated IaC will only generate one project per repository, unlike Current IaC, which will generate one project per IaC file.

Integrated IaC project for your SCM Git repository

Stage 3: View Integrated IaC issues on the Cloud Issues UI

Clicking on the "Infrastructure as Code Issues" link will take you to a filtered view of the Cloud Issues UI, to include only issues from the corresponding Integrated IaC Environment that aligns with your Project.

Cloud Issues UI, filtered to the specific environment for your SCM Git repository

Expanding the grouped issues, and selecting a given issue will open an Issue Card, that includes information on:

  • The resource - including the location, cloud platform (such as "aws") with a link to the SCM file in question for faster fixes, as well as the input type (such as "tf_hcl" for Terraform HCL).

  • The environment - providing details on the Integrated IaC environment that corresponds to your Git repository.

  • The rule that failed - including a link to Snyk's security rules documentation for additional information, such as specific remediation steps.

  • Why your developer should fix this particular misconfiguration.

Integrated IaC issue card

Last updated

Was this helpful?

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

Change request updated