
Keeping the ServiceNow CMDB Healthy for AWS
Part 6 of 6: Governance and Additional Tools
Series: ServiceNow on AWS (9 articles)
- …
- 6Keeping the ServiceNow CMDB Healthy 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
Part 5: Near Real-Time CMDB Updates with AWS Config, EventBridge and SNS
Part 6: Governance and Additional Tools (this document)
What this document covers
1. Keeping the CMDB healthy: governance and additional tools
Appendix: References
Contents
1. Keeping the CMDB Healthy: Governance and Additional Tools
Getting AWS data into the CMDB is only half the job. Cloud resources come and go quickly, so without ongoing care the CMDB fills up with duplicates, stale records and untagged CIs. This section describes the ServiceNow and AWS tools that keep the data trustworthy. It also covers a few related tools that are useful to know about.
1.1 CMDB Health dashboard
The CMDB Health dashboard (All > Configuration > CMDB Dashboard, or the Health tab in CMDB Workspace) scores CMDB quality on three measures:
Measure | What it checks | Why it matters for AWS |
|---|---|---|
Completeness | Whether required and recommended attributes are filled in (for example owner, support group, environment). | Shows CIs that arrived without the tags or fields needed for mapping and routing. |
Correctness | Duplicate CIs (based on identification rules), orphan CIs (missing required relationships) and stale CIs (not updated within a set number of days). | Catches duplicates from running two discovery sources, and terminated resources that were never retired. |
Compliance | Whether CIs match audit rules and desired-state checks that you define. | For example: every production EC2 instance must have an Owner tag. |
The overall score rolls up from these measures at the CMDB, class and CI level. In recent releases each score is simply the percentage of CIs that pass. Failed checks can create remediation tasks that are assigned to the CI’s managing group.
Step-by-step: turn on and tune health checks for AWS classes
1. Go to All > Configuration > CMDB Health > Health Preferences (in newer releases, CMDB Workspace > Management > Health).
2. Make sure the Completeness, Correctness and Compliance jobs are active. Those jobs are the scheduled jobs whose names start with *CMDB Health Dashboard*.
3. Open Staleness Rules. The default often marks a CI stale after 60 days without an update. For AWS classes updated daily by the Service Graph Connector, set a shorter period, for example 7 days, so terminated resources show up quickly. Add a rule for each class you care about, for example Virtual Machine Instance.
4. Open Recommended Fields for the AWS classes and add the fields your processes depend on, for example *Support group* or *Owned by*. These fields drive the completeness score.
5. Optionally create Compliance audits, for example *All production VM instances have an Application tag*, using a CMDB query or a Key Value condition.
6. Run the jobs once by hand, then review the dashboard by class.
1.2 CMDB and CSDM Data Foundations dashboards
The CMDB and CSDM Data Foundations Dashboards app is free from the ServiceNow Store. Once installed, open it from All > Configuration > CMDB Data Foundations Dashboard or CSDM Data Foundations Dashboard. You can switch between the two from the title bar.
• CMDB Data Foundations checks that the CMDB setup is sound. Examples: identification rules exist for every class in use, discovery sources are valid, there are no CIs in the generic base class, and relationships are well-formed.
• CSDM Data Foundations checks the service model. Examples: application services are linked to business applications, services have support groups, and infrastructure is linked to application services.
• Each failing check comes with a Get Well Playbook: guidance on why the check matters and how to fix it. For a beginner this is one of the most useful ways to learn what a well-built CMDB looks like.
1.3 CMDB Data Manager: retiring stale CIs
When an AWS resource is terminated, the Service Graph Connector detects the deletion and updates the CI’s status. Resources that drop out of discovery for other reasons, for example because Config recording was turned off or an account was removed, can be left behind. CMDB Data Manager handles this with lifecycle policies:
• Attestation asks the CI owner to confirm the CI still exists.
• Retire sets the CI to Retired / Non-Operational.
• Archive moves old retired CIs to archive tables.
• Delete permanently removes CIs. Use this only according to your data-retention policy.
A policy can either create review tasks for a person to approve, or update CIs automatically. The Retire, Archive and Delete policies need an active CI lifecycle rule for each class they target.
Step-by-step: create a retirement policy for stale AWS CIs
1. Go to CMDB Workspace > Management > CMDB Data Manager and click Create policy. Choose the type Retire.
2. Under Target, choose the class, for example Virtual Machine Instance or Cloud Resource. Add conditions such as *Discovery source is ServiceGraph-AWS*, *Operational status is Operational*, and *Most recent discovery is before 30 days ago*.
3. Choose the action: Create tasks (recommended at first, so people review the results) or Auto-retire. Set the assignment group for the tasks.
4. Under Retirement definition, set what retirement means for this class, typically *Install status = Retired* and *Operational status = Non-Operational*. Check that the definition covers the same class as the policy; a mismatch is a common reason a policy does nothing.
5. Set the schedule, for example daily, then Publish. Check the results in the Data Manager job log.
6. Once you trust the results, create a separate Archive policy for CIs that have been retired for, say, 180 days.
Retire before you delete, and clean up relationships
Do not delete CIs right after retiring them. Incidents, changes and audit history refer to them. Follow your organization’s retention policy. Also clean up relationships: links in the relationship table ( cmdb_rel_ci ) that point to retired CIs make service maps and impact analysis wrong. A scheduled flow or Data Manager policy can remove or archive them. |
|---|
1.4 Multisource CMDB / CMDB 360
When more than one source updates the same CI, for example the Service Graph Connector and MID Server discovery, it can be hard to tell where a value came from. Multisource CMDB (shown in CMDB 360) keeps a record, attribute by attribute, of the value each discovery source reported and when. The CI itself shows only the winning value chosen by the reconciliation rules (Part 1, Section 4.4).
• Use it to check that your reconciliation rules behave as intended. For example, you can confirm that the Service Graph Connector owns instance type while MID Server discovery owns OS version.
• Use it to investigate a value that seems wrong, by seeing every source’s proposal side by side.
• It is turned on with a system property and adds data to the
cmdb_multisource_data table, so enable it for the classes you need rather than for everything.1.5 AWS-side techniques
AWS Config advanced queries
AWS Config advanced queries use a SQL-like language to return the current state of resources without calling each service’s own describe API. Run against a Config aggregator, one query covers every account and Region. This is the same mechanism the Service Graph Connector uses, which makes it a good way to check what the CMDB should contain. Two useful queries:
-- Count resources by type (compare with CMDB counts by class) SELECT resourceType, COUNT(*) GROUP BY resourceType
-- Find EC2 instances missing an Application tag SELECT resourceId, accountId, awsRegion WHERE resourceType = 'AWS::EC2::Instance' AND tags.key NOT IN ('Application')
Run them in the AWS console under AWS Config > Advanced queries, and select the aggregator as the query scope.
Remove Config rules tied to terminated resources
AWS recommends removing Config rules that are linked to terminated resources. Otherwise stale records can keep appearing in the aggregator data and reach the CMDB.
Config custom resource types
If a resource is not supported by AWS Config, for example a third-party or on-premises item, you can register a custom resource type and record its configuration with the
PutResourceConfig API. The standard Config APIs then return it like any other resource. It can then come into the CMDB through the Generic Resources allow-list or a custom ETL feed. By default Config keeps no history for unsupported types until you set this up.Tag-capture limits in Config
If a resource type does not support tags, or its describe API does not return them, AWS Config records the resource without tags. Anything that relies on those tags, including tag-based mapping in ServiceNow, will not work for that type. Before you rely on a tag for mapping, check the AWS Config supported-resource-types documentation and run an advanced query to confirm the tag is present.
1.6 Enforcing tags (AWS and ServiceNow)
Tag-based mapping (Part 2) is only as good as your tags. Enforce them on both sides.
In AWS
• AWS Organizations tag policies define the allowed keys, capitalization and values (for example
Environment must be one of Prod, Test or Dev). They can also block non-compliant tagging on supported resource types.• The `required-tags` AWS Config managed rule flags resources that are missing mandatory keys. Use Config remediation or ticketing to fix them.
• Infrastructure as code: set default tags in CloudFormation, CDK or Terraform so every resource is tagged when it is created.
• AWS Resource Explorer and Tag Editor let you find untagged resources across Regions and fix tags in bulk.
In ServiceNow
• Tag governance: agree on which tag keys ServiceNow relies on, for example
Application , Environment , Owner , CostCenter and SupportGroup . Record them in your CMDB governance standards, and use the Compliance checks in Section 1.1 to measure them.• Do not confuse cloud tags with ServiceNow’s own tags. Cloud tags arrive in the Key Value table (
cmdb_key_value ) from discovery. ServiceNow tags are labels people add to records, are stored in separate tables, and can be limited with access controls.• For MID Server discovery, tags are brought in by the AWS patterns in the Discovery and Service Mapping Patterns Store app. Keep that app up to date.
• Tag category aliases in tag-based mapping (Part 2, Section 1.4) absorb small inconsistencies such as
App vs Application . Fix the source tags in AWS rather than relying on aliases indefinitely.1.7 Other tools worth knowing
Tool | What it does | When to use it |
|---|---|---|
ServiceNow CMDB MCP Server | Lets AI assistants and agents that support the Model Context Protocol (MCP) query CIs, relationships and service maps through secure, mostly read-only tools. A few write actions, such as creating a CI, are allowed when authorized. | AI-assisted operations: questions like “what depends on this RDS instance?”, or impact analysis inside an agent workflow. |
Integration Hub AWS IAM spoke | Ready-made Integration Hub actions that call the IAM API directly (list users, roles, policies). It does not bring tags by default; you can add custom actions such as ListUserTags and ListRoleTags . | Workflow-driven IAM lookups or provisioning, or as another way to get IAM data in (Part 3, Section 1.5). |
Cloud cost management (ServiceNow) | Imports AWS cost and usage data and links spend to CIs and CSDM application services. | Charging back or reporting cloud cost by business application, once mapping (Part 2) is in place. |
CMDB Workspace and Unified Map | A modern interface for searching CIs, viewing health, managing classes and Data Manager policies, and browsing relationships visually. | Day-to-day CMDB administration; it is now the main home for many CMDB tools. |
Certification study guides | Study guides on Now Learning for CIS-Data Foundations (CMDB, CSDM, IRE, CMDB 360) and CIS-Service Mapping (including tag-based mapping). | A structured learning path for new CMDB administrators, and a checklist of what a full CMDB setup includes. |
End of support: AWS Service Management Connector (March 31, 2027)
Some organizations still use the older AWS Service Management Connector for ServiceNow (formerly the AWS Service Catalog Connector). It is an AWS-provided ServiceNow app that, among other things, can sync AWS Config data into the CMDB, including through a Config aggregator, and connect ServiceNow to AWS Systems Manager features such as OpsCenter. AWS will end support for this connector on March 31, 2027. After that date the connector’s console and resources can no longer be accessed. If your instance still uses it to populate the CMDB, plan to move CMDB population to the Service Graph Connector for AWS (Part 1, Section 2) before that date. Also review any Service Catalog provisioning or Systems Manager workflows that depend on it, using the migration options in the AWS Service Management Connector Administrator Guide. During the move, run both connectors in a sub-production instance and use IRE identification rules (Part 1, Section 4) so that CIs created by the old connector are matched and updated, not duplicated. |
|---|
Appendix: References
Topic | Link |
|---|---|
AWS IAM Spoke | servicenow.com/docs/r/integrate-applications/integration-hub/aws-iam-spoke.html |
AWS tagging best practices | docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/ |
CMDB Health dashboard (community) | servicenow.com/community/cmdb-articles/understanding-the-cmdb-healthdashboard-numbers/ta-p/2300423 |
CMDB / CSDM Data Foundations dashboards | servicenow.com/docs/r/washingtondc/servicenow-platform/configuration-management-database-cmdb/csdm-cmdb-foundations-dashboards.html |
Data Foundations dashboards install (KB0960770) | support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0960770 |
Multisource CMDB | docs.servicenow.com (search “Multisource CMDB”) |
AWS Config advanced queries | docs.aws.amazon.com/config/latest/developerguide/querying-AWS-resources.html |
Config aggregator sync to CMDB (stale-record tip) | docs.aws.amazon.com/smc/latest/ag/config-sync.html |
Config custom resources (PutResourceConfig) | docs.aws.amazon.com/config/latest/APIReference/API_PutResourceConfig.html |
CMDB MCP Server | servicenow.com/docs/r/zurich/it-operations-management/service-mapping/activate-sm-mcp-server.html |
AWS Service Management Connector (end of support) | docs.aws.amazon.com/smc/latest/ag/sn-opscenter-integ.html |
Series: ServiceNow on AWS (9 articles)
- …
- 6Keeping the ServiceNow CMDB Healthy for AWS This article
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article