Deepak Ingale 1
ServiceNow Employee

Disclaimer: The views in this post are my own and do not represent ServiceNow, Inc. The setup was built and tested in a personal lab using non-production resources and is shared for reference only. Actual implementation should align with your organization's enterprise standards, including security policies, best practices, and change processes. Your environment and ServiceNow release may differ, so check the official documentation before applying anything. Shared as-is, without warranty.

 

In this article, we are going to cover steps required in ServiceNow instance to setup AWS Cloud Discovery.

 

Prerequisites:

  • AWS MID Server is installed.
  • CloudFormation templates are deployed in AWS respective accounts.

Step 1: Activate the plugins

Activate the Discovery and Cloud Discovery (AWS) plugins for your release. Plugin names vary slightly by release, so check the plugin list if a name differs.

Step 2: Set the instance-profile parameter on the MID server.

 

Instance profile parameter tells the MID server to use its EC2 instance role. Without it, cloud discovery fails

  • Go to All > Discovery > MID Servers and open your MID server.
  • Open the Configuration Parameters related list, then choose New.
  • Set Parameter name to mid.aws.instance_profile_name.
  • Set Value to SnowEc2InstanceDiscoveryRole.
  • Choose Submit. The parameter should appear on the MID Server record.

DeepakIngale1_3-1795969654360.png

 

Step 3: Create the Cloud Service Account records

Create one record per account and store no credentials in any of them.

  • Accessor record: Name it clearly, such as mid-accessor. Enter the accessor's account ID, set MID Server to your MID server and leave Discovery credentials and Accessor account blank. The accessor is the root of the trust chain, so it has no accessor of its own.

 

DeepakIngale1_4-1795969654363.png

 

  • Management and member records: Enter each account's ID and set Accessor account to the accessor record. Leave credentials blank.

DeepakIngale1_5-1795969654366.png

 

DeepakIngale1_6-1795969654368.png

 

 

Step 4: Add cross-assume role parameters

The cross-assume table maps each account to the role ServiceNow should assume in it. Go to Cloud

Provisioning and Governance > Organization Access Parameters > AWS Cross Assume Role

Parameters > New, and create one row per account. Each row has two fields:

  • Access role name: the full role ARN, in the format arn:aws:iam::<ACCOUNT-ID>:role/<ROLE-NAME>.
  • Cloud service account: the matching record from Step 3.

DeepakIngale1_7-1795969654371.png

 

DeepakIngale1_8-1795969654373.png

 

DeepakIngale1_9-1795969654374.png

 

Step 5: Validate in order

Validate the accessor first, then the management account, then each member account. Check the Horizontal Discovery Log after each one.

Step 6: Run discovery and confirm the results

Run discovery for each account. In the CMDB, filter AWS configuration items by account ID, or check the AWS Datacenter record for each account. A successful run shows resources for each account, and each account discovers independently of the others.

Then create a recurring Cloud Discovery schedule, so the CMDB stays current instead of relying on manual runs.

 

DeepakIngale1_13-1795969851711.png

 

 

 

DeepakIngale1_14-1795969859549.png

 

 

 

Version history
Last update:
an hour ago
Updated by:
Contributors