You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/cloud-docs/integrations/service-now/service-graph/customizations.mdx
+8-8
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
page_title: Overview - ServiceNow Service Graph Connector for Terraform Integration - summary of the setup process
2
+
page_title: Overview - ServiceNow Service Graph Connector for Terraform Integration - instructions on customizations for admins
3
3
description: >-
4
4
ServiceNow Service Graph Connector for Terraform allows you to edit ETL mapping and add more resources.
5
5
---
@@ -18,7 +18,7 @@ Any customizations should be done from the application's scope: **Service Graph
18
18
19
19
## Clone the ETL map
20
20
21
-
Navigate to the **IntegrationHub ETL** in the top menu. Check the **SG-Terraform** record and click **Duplicate**.
21
+
Navigate to the **IntegrationHub ETL** in the top menu. Check the **SG-Terraform** record and click **Duplicate**. Refer to the [ServiceNow documentation](https://docs.servicenow.com/en-US/bundle/utah-servicenow-platform/page/product/configuration-management/task/duplicate-cmdb-transform-map.html) on creating a duplicate of an existing ETL transform map.
22
22
23
23
## Build a resource in Terraform Cloud
24
24
@@ -44,25 +44,25 @@ Locate the resource in the state object. This JSON record will serve as a source
44
44
45
45
## Identify the CI target
46
46
47
-
Pick a suitable Configuration Item (CI) target for your resource. For example, AWS virtual private network (VPC) is mapped to Cloud Network (`cmdb_ci_network`) in the Service Graph Connector for Terraform. Refer to the [ServiceNow CMDB documentation](https://docs.servicenow.com/en-US/bundle/utah-servicenow-platform/page/product/configuration-management/reference/cmdb-tables-details.html) for more details on available CI tables.
47
+
Pick a suitable Configuration Item (CI) target for your resource. For instance, the AWS virtual private network (VPC) resource is mapped to Cloud Network (`cmdb_ci_network`) by the Service Graph Connector for Terraform. Refer to the [ServiceNow CMDB documentation](https://docs.servicenow.com/en-US/bundle/utah-servicenow-platform/page/product/configuration-management/reference/cmdb-tables-details.html) for more details on available CI tables.
48
48
49
49
## Consult the CI Class Manager
50
50
51
51
After selecting an appropriate CI target, it is important to consult the CI Class Manager for guidance on dependent relationships. Numerous CMDB resources rely on other CI tables. If a related class is not properly mapped, the ETL job will generate errors or warnings, resulting in the failure of importing your resource into CMDB.
52
52
53
53
In the top navigation, click on **All**, search for **CI Class Manager**, and click on **Open Hierarchy**. Search for your target CI Class and check **Dependent Relationships** tab to learn more about dependent mappings required by the resource.
54
54
55
-
Example: according to the CI Class Manager, Cloud Network should be hosted on Logical Datacenter and Cloud Service Account.
55
+
Example: according to the **CI Class Manager**, **Cloud Network** should be hosted on **Logical Datacenter** and **Cloud Service Account**.
56
56
57
57
## Set the mapping rules
58
58
59
-
Open the **IntegrationHub ETL** from the top navigation menu and select your cloned ETL record prepared for customization.
59
+
Open the **IntegrationHub ETL** from the top navigation menu and select your cloned ETL map record prepared for customization. Refer to the [ServiceNow documentation](https://docs.servicenow.com/en-US/bundle/utah-servicenow-platform/page/product/configuration-management/concept/create-etl-transform-map.html) for a more comprehensive instruction on creating an ETL transform map.
60
60
61
61
Click on the first **Specify Basic Details** section of the ETL Transform Map Assistant. Select the import set number containing your resource from the **Sample Import Set** dropdown and click **Mark as Complete**.
62
62
63
63
Open the **Preview and Prepare Data** section and review the imported rows. Click **Mark as Complete**.
64
64
65
-
The third section provides the interface for mapping resource attributes. Click on **Select CMDB Classes to Map Source Data**. Click on **Add Conditional Class** button at the top. Set the rules that will identify your resource in the import set. Use the `type` field value from the Terraform state object to identify your resource (on the ServiceNow side field name are prefaced with `u_`). Set the target CMDB CI CLass name and click **Save**.
65
+
The third section provides the interface for mapping resource attributes. Click on **Select CMDB Classes to Map Source Data**. Click on **Add Conditional Class** button at the top. Set the rules that will identify your resource in the import set. Use the `type` field value from the Terraform state object to identify your resource (on the ServiceNow side, field name are prefaced with `u_`). Set the target CMDB CI CLass name and click **Save**.
66
66
67
67

68
68
@@ -78,7 +78,7 @@ Click **Mark as Complete** to finalize the **Select CMDB Classes to Map Source D
78
78
79
79
## Set the required relationships
80
80
81
-
Click **Add Relationships** to proceed to the next section. Click **Add Conditional Relationship** button at the top. The following configuration tells the ETL that when a record with `aws_vpc` type is found in the import set, it should be hosted on **AWS Datacenter 1**. Click **Save**.
81
+
Click **Add Relationships** to proceed to the next section. Click **Add Conditional Relationship** button at the top of the page. The following configuration tells the ETL that when a record with `aws_vpc` type is found in the import set, it should be hosted on **AWS Datacenter 1**. Click **Save**.
82
82
83
83

84
84
@@ -90,4 +90,4 @@ Click **Mark as Complete** to finalize the **Add Relationships** section.
90
90
91
91
## Run a test
92
92
93
-
You can test the new resource mapping either by using the **Test and Rollback Integration Results** interface of the ETL Transform Map Assistant or initiating a new run in your Terraform Cloud workspace containing the resource deployment.
93
+
To test the new resource mapping, you have two options. First, you can utilize the **Test and Rollback Integration Results** interface of the ETL Transform Map Assistant. Alternatively, you can initiate a new run in your Terraform Cloud workspace that includes the deployment of the resource.
Copy file name to clipboardExpand all lines: website/docs/cloud-docs/integrations/service-now/service-graph/index.mdx
+5-7
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ The integration is based on the [Service Graph Connector](https://www.servicenow
17
17
18
18
The diagram below shows how the application connects Terraform Cloud to your ServiceNow instance.
19
19
20
-

20
+

21
21
22
-
The Service Graph Connector for Terraform integrates with Terraform Cloud in order to obtain the latest information about your deployments, with the Terraform state being the source of data. The application doesn't make any requests to your cloud provider, and therefore doesn't ask you to share any cloud credentials.
22
+
The Service Graph Connector for Terraform integrates with Terraform Cloud to fetch up-to-date information about your deployments. It leverages the Terraform state as the primary data source. The application doesn't make any requests to your cloud provider or require you to share any cloud credentials.
23
23
24
24
### Two modes of import
25
25
@@ -35,13 +35,13 @@ Access the scheduler by searching for **Service Graph Connector for Terraform**
35
35
36
36
As a more lightweight alternative to the scheduled import, you can configure [webhook notifications](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings/notifications) for all relevant workspaces in your Terraform Cloud. Webhooks offer an event-based approach to importing your resources. The import is triggered as soon as a Terraform run is successfully completed in the Terraform Cloud.
37
37
38
-
Webhook POST requests are sent to an API endpoint exposed by the Service Graph Connector for Terraform in your ServiceNow instance. Each webhook request includes an HMAC token, and the endpoint validates the signature using the secret you provide. Learn more about [Terraform Cloud notification authenticity](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings/notifications).
38
+
Webhook POST requests are sent to an API endpoint exposed by the Service Graph Connector for Terraform in your ServiceNow instance. Each webhook request includes an HMAC token, and the endpoint validates the signature using the secret you provide. Learn more about [Terraform Cloud notification authenticity](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings/notifications#notification-authenticity).
39
39
40
40
Internally, the application uses a scheduled job as a helper to keep track of the incoming webhook requests. You can activate, configure it, and view the history of all webhook imports by navigating to **Scheduled Imports** and selecting **SG-Terraform Scheduled Process State**. By default, the job is set to run every minute. You can change it to run more frequently if you wish to process the webhook requests even faster.
41
41
42
42
-> **Tip:** Both import options may be enabled, or you may choose to configure only the webhooks or the scheduled import.
43
43
44
-
The [setup page](/terraform/cloud-docs/integrations/service-graph/service-graph-setup) provides configuration details for both import modes.
44
+
The [setup page](/terraform/cloud-docs/integrations/service-now/service-graph/service-graph-setup) provides configuration details for both import modes.
45
45
46
46
### ETL (Extract, Transform, Load)
47
47
@@ -93,6 +93,4 @@ The [resource mapping](/terraform/cloud-docs/integrations/service-now/service-gr
93
93
94
94
### Destroyed resources
95
95
96
-
The Service Graph Connector automatically marks the deleted resources as **Non-Operational** in the ServiceNow CMDB. After the destroy run is completed in Terraform Cloud and the application's import job is finished in your ServiceNow instance, the value of the **Operational Status** field will change to **Non-Operational** for all resources removed from the Terraform state as a result of the deletion.
97
-
98
-
96
+
The Service Graph Connector automatically marks the deleted resources as **Non-Operational** in the ServiceNow CMDB. After the destroy run is completed in Terraform Cloud and the application's import job is finished in your ServiceNow instance, the **Operational Status** field of all resources removed from the Terraform state during the deletion process will be updated to **Non-Operational**.
Copy file name to clipboardExpand all lines: website/docs/cloud-docs/integrations/service-now/service-graph/resource-coverage.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
page_title: Overview - ServiceNow Service Graph Connector for Terraform Integration - Resource Coverage
3
3
description: >-
4
-
ServiceNow Service Graph integration allows to import selected resources into ServiceNow CMDB.
4
+
ServiceNow Service Graph integration allows to import selected resources from major cloud providers into ServiceNow CMDB.
5
5
---
6
6
7
7
# Resource Coverage and Mapping
8
8
9
-
The following tables outline how Service Graph Connector for Terraform maps resources from the Terraform state to the ServiceNow CMDB configuration items (CIs).
9
+
The tables provided on this page illustrate the mapping of resources from the Terraform state to the ServiceNow CMDB configuration items (CIs) by the Service Graph Connector for Terraform.
10
10
11
-
While the default ETL map provided by the application can be utilized without modification, it is also possible to customize it according to the specific requirements of your organization. Check [ETL Mapping Customizations](/terraform/cloud-docs/integrations/service-now/service-graph/customizations) for more details.
11
+
While the default ETL map provided by the application can be utilized without modification, it is also possible to customize it according to the specific requirements of your organization. Check [customizations](/terraform/cloud-docs/integrations/service-now/service-graph/customizations) for more details.
Once the integration is installed, proceed to the guided setup form to enter your Terraform credentials and set up a secure connection between Terraform Cloud and your ServiceNow instance.
21
+
Once the integration is installed, you can proceed to the guided setup form where you will enter your Terraform credentials. This step will establish a secure connection between Terraform Cloud and your ServiceNow instance.
22
22
23
23
### Create and scope Terraform API token
24
24
@@ -39,17 +39,17 @@ In the **Configure Terraform authentication credentials** section, click **Confi
39
39
40
40
If you want to route traffic between your Terraform Cloud and the ServiceNow instance through a MID server acting as a proxy, change **Applies to** dropdown to "Specific MID servers" and select your previously configured MID server name from the list. If you don't use MID servers, leave the default value.
41
41
42
-
Set the **API Key** to the Terraform Cloud team API token that you created earlier in this tutorial and click **Update**.
42
+
Set the **API Key** to the Terraform Cloud team API token that you created in the previous section and click **Update**.
43
43
44
44

45
45
46
46
In the **Configure Terraform authentication credentials** section, click **Mark as Complete**.
This section is optional and can be skipped if you plan to use only the scheduled import. Refer to the documentation explaining the [two modes of import](/terraform/cloud-docs/integrations/service-graph/index#two-modes-of-import) to decide which option works best for your environment.
50
+
This section is optional and can be skipped if you plan to use only the scheduled import. Refer to the documentation explaining the [two modes of import](/terraform/cloud-docs/integrations/service-now/service-graph#two-modes-of-import) to decide which option works best for your environment.
51
51
52
-
To improve security, Terraform Cloud includes an HMAC signature on all "generic" webhook notifications using a user-provided **token**. This token is an arbitrary secret string that Terraform Cloud uses to sign each webhook notification. ServiceNow uses the same token to verify the request authenticity. Refer to [Notification Authenticity](/terraform/cloud-docs/api-docs/notification-configurations#notification-authenticity) for more information.
52
+
To improve security, Terraform Cloud includes an HMAC signature on all "generic" webhook notifications using a user-provided **token**. This token is an arbitrary secret string that Terraform Cloud uses to sign each webhook notification. ServiceNow uses the same token to verify the request authenticity. Refer to [Terraform Cloud notification authenticity](/terraform/cloud-docs/api-docs/notification-configurations#notification-authenticity) for more information.
53
53
54
54
Create a token and save it in a safe place. This secret token can be any value but should be treated as sensitive.
55
55
@@ -123,10 +123,10 @@ Under the form, you will find a table containing all registered import sets. Loc
123
123
124
124
Click on the **Import Set** field to open it and view its details. The **Outbound Http Requests** tab lists all requests made by your ServiceNow instance to Terraform Cloud in order to retrieve the latest Terraform state.
125
125
126
-
Monitor the state of the import job. Wait for it to change to Complete, indicated by a green mark.
126
+
Monitor the state of the import job. Wait for it to change to **Complete**, indicated by a green mark.
127
127
Once the import job is complete, you can access the imported resources in the CMDB.
128
128
129
-

129
+

130
130
131
131
You can also access all import sets, regardless of the import type, by navigating to **All** and selecting **Import Sets** under the **Advanced** category.
0 commit comments