How to connect Terraform from ServiceNow

anilkumarsharma
Giga Guru

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.

find_real_file.png

 

 

 

 

7 REPLIES 7

BionidM
Tera Contributor

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

Ram Devanathan1
ServiceNow Employee
ServiceNow Employee

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.

BionidM
Tera Contributor

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