---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Create a Terraform Open Source config provider

# Create a Terraform Open Source config provider {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read

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 Provisioning and Governance: 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](https://servicenow-prod.fluidtopics.net/ievQWWcwfg6f9ePR1rNJ7w "Add minor or patch versions of the Terraform (Terraform Open Source, Terraform Enterprise, or Terraform Cloud) to the workload provider type record.").
* 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](https://www.servicenow.com/docs/access?context=t_ConfigureCapabilities&version=yokohama&pubname=yokohama-servicenow-platform&ft:locale=en-US).
* 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).

{#setup-cpg-terraform-connector-for-terraform-open-source__ul_hk5_nmw_l5b}

Role required: cloud_admin

## Procedure

1. **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.
   1. Navigate to AllCloud Provisioning and GovernanceCloud Admin Portal.  
      The Cloud Admin Portal opens in a new browser tab. {#setup-cpg-terraform-connector-for-terraform-open-source__cpg-access-cloud-admin-portal}
   2. On the Cloud Admin Portal, navigate to ManageCredentials.
   3. Select New.
   4. Select SSH Private Key Credentials.
   5. On the form, fill in the fields.  
      For a description of the form fields, see [Cloud Provisioning and Governance: Terraform Connector SSH Private Key Credentials form reference](https://servicenow-prod.fluidtopics.net/zBq05JQWCq2r3DaXh257iQ "Cloud Provisioning and Governance: Terraform Connector uses the SSH private key credential to connect with the Linux server on which Terraform Open Source is running.").
   6. Select the Test Credentials related link.
   7. On the form, fill in the fields.  
      {#setup-cpg-terraform-connector-for-terraform-open-source__table_skl_gty_l5b__entry__2}

      | Field | Description |
      |-|-|
      | Target | IP address of the Terraform server for which you are creating the credential. |
      | MID Server | MID Server that can be used to connect with the Terraform server. |
      [Table 1. Test Credentials form]

      {#setup-cpg-terraform-connector-for-terraform-open-source__table_skl_gty_l5b}
   8. Select OK.
   9. Select Submit.
   {#setup-cpg-terraform-connector-for-terraform-open-source__substeps_ccx_lkx_l5b}
2. **Optional:** If you have deployed the Terraform Open Source on a Windows server, create Windows Credentials for the server in the ServiceNow AI Platform.
   1. Navigate to AllCloud Provisioning and GovernanceCloud Admin Portal.  
      The Cloud Admin Portal opens in a new browser tab. {#setup-cpg-terraform-connector-for-terraform-open-source__d15003e1342}
   2. On the Cloud Admin Portal, navigate to ManageCredentials.
   3. Select New.
   4. Select Windows Credentials.
   5. On the form, fill in the fields.  
      For a description of the form fields, see [Cloud Provisioning and Governance: Terraform Connector Windows Credentials form reference](https://servicenow-prod.fluidtopics.net/qiUXeJeiW5DZ2of9UH~6Qg "Cloud Provisioning and Governance: Terraform Connector uses the Windows credential to connect with the Windows server on which Terraform Open Source is running.").
   6. Select the Test Credentials related link.
   7. On the form, fill in the fields.  
      {#setup-cpg-terraform-connector-for-terraform-open-source__d15003e1265__entry__2}

      | Field | Description |
      |-|-|
      | Target | IP address of the Terraform server for which you are creating the credential. |
      | MID Server | MID Server that can be used to connect with the Terraform server. |
      [Table 2. Test Credentials form]

      {#setup-cpg-terraform-connector-for-terraform-open-source__d15003e1265}
   8. Select OK.
   9. Select Submit.
   {#setup-cpg-terraform-connector-for-terraform-open-source__substeps_lnd_pmy_l5b}
3. Create a config provider for Terraform Open Source.
   1. On the Cloud Admin Portal, navigate to ManageConfig Management. {#setup-cpg-terraform-connector-for-terraform-open-source__cmd-cpg-cloud-admin-access-config-mgt}
   2. Select New.
   3. On the form, fill in the fields.  
      For a description of the form fields, see [Cloud Provisioning and Governance: Terraform Connector Create Config Provider form reference](https://servicenow-prod.fluidtopics.net/00L7CvC7Obo1XHYIBeieSQ "Cloud Provisioning and Governance uses the config provider to interact with the Terraform deployment.").
   4. Select Submit.
   {#setup-cpg-terraform-connector-for-terraform-open-source__substeps_rtv_nlx_l5b}

## What to do next

Discover the Terraform templates from the Terraform Open Source server. For more information, see [Run the IaC Discovery](https://servicenow-prod.fluidtopics.net/YZNDuxdo~NHN2cok4nupQg "Run the Infrastructure as Code (IaC) discovery to identify the resources of the Terraform environment.").

*[\>]: and then


