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
ā07-13-2022 03:19 AM
Hi Anil,
Check this link
https://www.terraform.io/cloud-docs/integrations/service-now
Mark Correct or helpful if it helps.
Thanks,
Yousaf
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-13-2022 04:57 AM
Thanks for the update. i have seen the document which is shared by you but terraform is runing on windows VM hence i want to make the connecton based on windows machine.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-13-2022 06:50 AM
this is wrong document as it is referring to the Hashicorp app - not the ServiceNow app.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-13-2022 07:28 AM
in the config provider creation dialog -
for url you need to give full hostname or ip address of your windows machine.
please test your windows credentials with this once, in the credential record page.
credential - pick the windows credential you just setup
version - doesn't matter - just select 1.0