Set up the Terraform Cloud integration for IaC
Last updated
Last updated
More information
Snyk privacy policy© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.
You must be an administrator of the Snyk organization to configure the Terraform Cloud integration.
Navigate to the dedicated Terraform Cloud integration settings page, under the Integrations page in the Snyk Web UI, then follow these steps to set up Terraform plan scanning:
In the Snyk Web UI, go to the Terraform Cloud integration settings page for your organization:
https://app.snyk.io/org/{YOUR-SNYK-ORG}/manage/integrations/terraform-cloud
to find the provided URL and HMAC Key.
Now navigate to Terraform Cloud in the organization global settings:
Go to the run tasks settings for your TFC organization:
https://app.terraform.io/app/{YOUR_TFC_ORG}/settings/tasks
Create a new run task for Snyk with the URL and HMAC key values. The HMAC key is mandatory for the Snyk integration to work, even though it is identified as optional on Terraform Cloud.
Navigate to your Terraform Cloud Workspace, enter the Settings __ menu and chose Run Tasks.
The run task you created is available under Available Run Tasks; click on + to associate it.
Choose the enforcement level (Advisory or Mandatory) and click Create.
Once your integration is set up, Snyk scans Terraform plans for each run triggered in your workspace.