AWS Builder Center
MID Server Cloud Discovery for AWS

MID Server Cloud Discovery for AWS

Part 4 of 6: Pattern-Based Discovery and Comparison with the Service Graph Connector

Series: ServiceNow on AWS (9 articles)

  1. …
  2. 4
    MID Server Cloud Discovery for AWS This article

How to read this guide: Most of this document is descriptive. Step-by-step instructions appear only where you change a default behavior or configuration; those sections are marked “Step-by-step”. Product menus and table names reflect recent ServiceNow releases (Xanadu/Yokohama/Zurich) and the Service Graph Connector for AWS v2.x. Always confirm them against your instance version. This is one part of a six-part series; read Part 1 first, as it explains the Service Graph Connector, the CMDB data model, and the RTE and IRE engines referred to here.
The series
Part 1: Core Guide — Service Graph Connector, Data Model and IRE
Part 2: CSDM, Tag-Based Mapping and Ticket Routing
Part 3: Extending the Service Graph Connector for IAM
Part 4: Pattern-Based Discovery and Comparison with the Service Graph Connector (this document)
Part 5: Near Real-Time CMDB Updates with AWS Config, EventBridge and SNS
Part 6: Governance and Additional Tools
What this document covers
1. MID Server cloud discovery
2. Comparing SGC and MID Server discovery
Appendix: References



Contents



1. MID Server Cloud Discovery (Pattern-Based)

The second way to discover AWS is ServiceNow Discovery. It is part of ITOM Visibility and runs patterns on a MID Server. The MID Server is a lightweight Java application that you host, typically on an EC2 instance inside your AWS network. It needs only outbound HTTPS to the ServiceNow instance.

1.1 How it works

• Cloud Service Accounts and credentials: the MID Server authenticates to AWS with an access key, or, preferably, with an IAM role on the MID Server’s EC2 instance profile. It then assumes a cross-account role in each member account. A management (master) account record can automatically find and create the member accounts.
• Cloud API patterns: horizontal discovery patterns call AWS service APIs (EC2, VPC, ELB, RDS, S3, Lambda, EKS, IAM, and many more) and build CIs and relationships. Discovery Schedules (Discovery > Cloud Discovery or Cloud Discovery Workspace) determine which accounts and Regions are scanned and how often.
• Host (OS) discovery: for EC2, the MID Server can log in to instances directly (SSH/WMI with credentials), or use AWS SSM (“credential-less”). With SSM, AWS Systems Manager runs commands on the instance and the results come back to the MID Server. This collects OS details, installed software, running processes, and TCP connections without opening inbound ports.
• Application dependency mapping: the process and connection data feeds Service Mapping and application patterns (for example Tomcat, IIS, Oracle). These build service maps from the top down, starting from an entry point such as a URL.
• All results flow through IRE, the same as SGC.

1.2 When MID Server discovery is the right tool

• You need deep host visibility for Software Asset Management, license compliance, or audit evidence.
• You need application dependency maps (top-down Service Mapping).
• You run a hybrid estate and want one discovery framework for on-premises and cloud.
• You need resource types or attributes SGC does not provide by default, for example IAM entities with their tags.

2. Comparing SGC and MID Server Discovery

Dimension
Service Graph Connector for AWS
MID Server Cloud Discovery
Ease of setup
Easier. Store app, Guided Setup, CloudFormation templates, no infrastructure to host.
Harder. Deploy and maintain MID Servers (sizing, Java, upgrades, high availability), create credentials and service accounts, configure schedules and patterns.
Infrastructure
None. Runs on the instance and calls AWS APIs.
One or more MID Server EC2 hosts, ideally clustered for load balancing and failover.
Licensing
Included with CMDB / ITOM subscriptions (no ITOM Discovery license required for the connector itself).
Requires ITOM Visibility (Discovery) subscription units.
Data source
AWS Config / Aggregator (one call per Organization), Tagging API, SSM.
Live AWS service APIs per account and Region, plus SSM or direct host login.
Resource coverage
Core compute, network, storage, database, serverless, and container types. Others through Generic Resources or ETL extension.
Broad cloud-API pattern coverage, including some types SGC skips (for example IAM). Patterns are customizable.
Host depth (vertical)
SSM Inventory plus SendCommand: software, processes, TCP, serial number.
Deeper. Full OS patterns, configuration files, application patterns, dependency mapping.
Freshness
Scheduled. Config must have recorded the change first.
Scheduled scans; can be paired with event-based discovery (Part 5).
Scale and performance
Efficient. Aggregator queries avoid per-account polling and API throttling.
Scans can use a lot of resources and be throttled in large estates. Needs MID capacity planning.
Operational concerns
Depends on Config being enabled everywhere; Config recording has a cost. Store upgrades can overwrite customizations.
MID patching and monitoring, credential rotation, network paths, pattern maintenance.
Customization
IntegrationHub ETL (clone the transform maps).
Pattern Designer, plus ETL for custom data sources.


2.1 Using SGC and MID Servers in parallel

Running both methods is common and supported. ServiceNow’s own guidance recommends a hybrid approach for large AWS estates: SGC for broad, MID-less, efficient coverage of cloud resources, and pattern-based Discovery for the EC2 workloads that need deep host data or application maps. IRE keeps the results together:
• Both sources identify CIs by the same AWS identifiers, so the same EC2 instance resolves to one CI, not two.
• Set reconciliation rules so each source owns the attributes it is best at (Part 1, Section 4.4), for example SGC for cloud attributes and Discovery for OS and software.
• Divide the work to avoid duplicate effort: for example, do not run SGC’s SSM deep discovery and MID SSM discovery on the same instances. Also avoid scheduling both for the same resource types at the same time.
• Use the Discovery Source field and the CMDB Health dashboard (duplicates, staleness, orphans) to track which source last updated each CI.
• Use MID Server discovery to cover what SGC does not, for example IAM entities with tags, while SGC remains the main feed.

Appendix: References

Topic
Link
IRE
servicenow.com/docs/r/servicenow-platform/configuration-management-database-cmdb/ire.html
MID Server for cloud
servicenow.com/docs/r/it-operations-management/mid-server-configuration-cloud.html
AWS SSM discovery via MID
servicenow.com/docs/r/it-operations-management/discovery/aws-ssm-discovery.html
Accessing AWS accounts (Discovery)
servicenow.com/docs/r/it-operations-management/access-aws-accounts.html
Pattern-based vs. SGC (community blog)
servicenow.com/community/itom-blog/aws-discovery-on-servicenow-pattern-based-vs-service-graph/ba-p/3529593

Series: ServiceNow on AWS (9 articles)

  1. …
  2. 4
    MID Server Cloud Discovery for AWS This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article