Create a Terraform Open Source config provider
-
- UpdatedFeb 1, 2024
- 3 minutes to read
- Washington DC
- 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.
Before you begin
- Ensure that Terraform server is running on Windows or Linux operating system.
- 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.
- Ensure that the MID Server can access the Terraform server.
- Ensure that the MID Server has Terraform capability. 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
About this task
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.