Create a Terraform Open Source config provider
- UpdatedJul 31, 2025
- 3 minutes to read
- Zurich
- Cloud Management
Create a Terraform Open Source config provider in Cloud Provisioning and Governance. The Terraform Open Source config provider enables Cloud Provisioning and Governance to discover the Terraform Open Source config installables (Terraform templates) and detect changes in them.
About this task
Starting this release, you can use OpenTofu with Cloud Provisioning and Governance. You must have admin rights to configure the alias name for at the vm host level.Ensure that server is running on Windows or Linux operating system.
Before you begin
- Ensure that a supported Terraform Open Source version is installed in the server. Cloud Services Catalog Terraform Connector supports Terraform Open Source versions 1.1.0 through 1.1.9 and 1.2.0.
- If you want to use a minor or patch version of the Terraform Open Source CLI, ensure that the minor or patch version is added to the workload config provider. For more information, see Add support for minor or patch versions of the Terraform.
- Ensure that the MID Server can access the Terraform server.
- Ensure that the MID Server has Terraform capability.
- As a new user, add Terraform MID capability to provision resources using Terraform Open-source host (VM). Add cloud provider specific mid capability (AWS,Azure,VMware, Google) to discover resources from cloud after provisioning Terraform Open-source catalog items. For example: If you are provisioning VM using Terraform Open-Source in Google, you would need mid with Terraform and Google capability. Both capabilities can be set on the same or different mids. Mid with Terraform capability should be able to connect to Terraform Host (VM) and that with Google capability must be able to reach google cloud. For more information, see Configure MID Server capabilities.
- Ensure that all the templates are stored in separate directories and all the template directories are in the same base directory.
- Ensure that Terraform Connector has access to the Terraform registry (registry.hashicorp.com).
Role required: cloud_admin
Procedure
- (Optional)
If you have deployed the Terraform Open Source on a Linux server, create SSH Private Key Credentials for the server
in the ServiceNow AI Platform.
- (Optional)
If you have deployed the Terraform Open Source on a Windows server, create Windows Credentials for the
server in the ServiceNow AI Platform.
-
Create a config provider for Terraform Open Source.
What to do next
Discover the Terraform templates from the Terraform Open Source server. For more information, see Run the IaC Discovery.