How to connect Terraform from ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-13-2022 02:54 AM
Hi Team
i am trying to connect with ServiceNow instance with Terraform but i have confused on some points.
install CPG module in PDI instance.
Install Terraform connector.
login in azure portal and created window vm machine.
on VM, I have installed the terraform which is executing .tf file and creating resource and VM
But problem is here that, i am not able to understand how i connect with ServiceNow when i click on create config provider
URL: which URL or IP address do I need to configure ?
Base Directory : I have installed the terrforam.exe in C drive. do i need to update the same directory here?
Server Type: Window.
Credential: i created windows credential and update user name and password which i login on VM machine but it is not working. Please help on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-31-2025 03:39 AM
Hi,
And what about the base directory?
In what format should be?
I have terraform.exe on C:\Terraform and the tf files stores in C:\Templates\storage
Should i choose C:\Templates as Base directory

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-31-2025 06:34 AM
no - the location where your terraform templates are present is the base directory.
if you are trying cloud services catalog app , there's out of box content, and a guided setup to configure all this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-03-2025 07:04 AM
I have tried it but its not working with Terraform for Windows open source provider.
But its working fine if i setup it in Linux server.
Even if configure terraform on my MID Server still discovery doesnt work.
Check below the screenshots where the path to terraform templates is shown and the provider configuration details on Service Now.
Am i missing something here?
Discovery is failing every time