AWS Builder Center
Mapping AWS Resources to Business Applications in ServiceNow

Mapping AWS Resources to Business Applications in ServiceNow

Part 2 of 6: CSDM, Tag-Based Mapping and Ticket Routing

Series: ServiceNow on AWS (9 articles)

  1. 2
    Mapping AWS Resources to Business Applications in ServiceNow 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 (this document)
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
What this document covers
1. Mapping resources to business applications
Appendix: References



Contents



1. Mapping Resources to Business Applications

1.1 Why mapping matters

An inventory of thousands of cloud CIs is of little operational use until each CI is linked to the application, owner, and support group it belongs to. Once that link exists, ServiceNow can do the following:
Use case
What mapping enables
Ticket routing
An incident or alert on a CI is assigned automatically to the support group of its application service (CSDM-driven assignment). This cuts reassignments and resolution time.
Change impact and risk
Change Management shows the application services and business services affected by a change to an RDS instance or a VPC, and can detect conflicts and blackout windows.
Event and AIOps correlation
CloudWatch alarms and events are grouped into alerts on the right service. Service health dashboards roll up from the infrastructure.
Ownership and accountability
Each CI has a clear owner, which supports access reviews and audits (for example IAM principal ownership).
Cost attribution / FinOps
Cloud spend can be allocated to business applications and cost centers.
Compliance and security
Vulnerabilities and misconfigurations are prioritized by business criticality; audit evidence and data classification are tracked.
Resilience / DR
Shows which applications depend on which Regions and AZs.


1.2 The CSDM layers

The Common Service Data Model is ServiceNow’s recommended structure for these links. In the order an AWS resource is linked upward:
• Infrastructure CIs (the Foundation / Manage Technical Services layer): the AWS resources discovered by SGC and Discovery.
• Application Service ( cmdb_ci_service_auto ): a deployed instance of an application in an environment, for example *Payroll – Prod*. It contains the infrastructure CIs. This is the most important link for operations.
• Business Application ( cmdb_ci_business_app ): the logical application, as known to the portfolio and enterprise architecture teams, for example *Payroll*. Application services are *instances of* the business application.
• Business Service / Service Offering (Sell / Consume layer): how the business consumes the capability. Technology Management Services (Manage Technical Services) describe services offered by infrastructure teams, for example *AWS Hosting*, and carry the support groups.

1.3 The ServiceNow tools for populating application services

Method
How it populates an application service
Good for
Tag-based mapping (Service Mapping)
Groups CIs whose  cmdb_key_value  tags match a set of tag categories (for example Application + Environment). Creates and maintains an application service for each unique combination of values.
Cloud estates with consistent tagging. No credentials or agents are needed.
Dynamic CI Group
An application service populated by a CMDB query or group, for example all CIs where tag Application=Payroll, or a given account or VPC.
Simple rule-based grouping
Top-down Service Mapping
Pattern-based traversal from an entry point (URL, port) through hosts and processes. Requires MID Server discovery.
Accurate dependency maps of complex applications
Manual / CSV / Service Builder
People add CIs to the service in the application service map or Service Builder.
Small or unusual services

All of these depend on accurate tags. Agree on an AWS tagging standard (for example  Application ,  Environment ,  Owner ,  CostCenter ,  SupportGroup ) and enforce it with AWS Organizations tag policies, Config rules (such as *required-tags*), and infrastructure-as-code. A tag value that is not consistent across resources (*payroll* vs *Payroll*) produces a separate application service.

1.4 Step-by-step: set up or modify tag-based mapping

Prerequisites: AWS tags have been imported into  cmdb_key_value  (check by opening a CI’s Key Values related list). You need ITOM Visibility / Service Mapping, and the  sm_admin  role.

A. Review the discovered tag keys

1. Go to Service Mapping > Tag-Based Mapping > Tag Categories. (In newer releases, use Service Mapping Workspace > Tag-based services.)
2. Review the Tag keys that discovery has found. Check for variants of the same key (for example  App ,  Application ,  application ). Each category can combine several key aliases.

B. Create (or modify) tag categories

1. Click New (or open an existing category to change it).
2. Enter a Name, for example *Application*. Add every tag key alias that represents it ( Application ,  App ,  app-name ).
3. Repeat for the other dimensions, for example *Environment* ( Environment ,  Env ) and, optionally, *Region* or *Cost Center*. Use only a small, meaningful set of categories. Do not create a category for every tag.
4. Save each category.

C. Create (or modify) the tag-based service family

1. Go to Service Mapping > Tag-Based Mapping > Tag-Based Service Families (in the workspace: Create tag-based service family). Click New.
2. Give it a name, for example *AWS Applications by App and Env*. Add the tag categories in order, for example Application, then Environment. Each unique combination of values becomes one application service, for example *Payroll – Prod* and *Payroll – Dev*.
3. Optionally set a naming convention, and the default owner and support group fields for the services that get created.
4. Click Preview / Show candidates to see the application services that would be created and the number of CIs in each. Correct tag data in AWS if you see unexpected combinations.
5. Click Create services (or Activate). Application services are created and kept up to date as tags change.

D. Fine-tune and connect to CSDM

1. Under Service Mapping > Tag-Based Mapping > Traversal Rules ( svc_traversal_rules ), review which CI relationships are followed. Untagged CIs related to tagged CIs (for example the NIC or volume of a tagged EC2) are included automatically. Disable rules that pull in too much.
2. Open each new application service. Set Support group, Managed by group, Owned by, Environment, and Business criticality. Then add the relationship to its Business Application (the *Business Application* field or related list).
3. Optionally link the application service to a Service Offering or Technology Management Service, so that incident and change routing uses the CSDM path.
4. To change the mapping later, edit the category keys or the order of categories in the family, then re-run Create services (or wait for the scheduled refresh). Retire services that are no longer used rather than deleting them.

1.5 Step-by-step: enable CSDM-based ticket routing

1. Make sure each application service has a Support group (and, for change, a Change group).
2. In Incident, set or confirm the assignment rule (or Assignment Data Lookup / Flow) so that the assignment group is taken from the Configuration item > Application service > Support group when the CI is set.
3. For events, configure Event Management alert rules so alerts are attached to the CI and inherit the service’s support group.
4. Test: raise an incident against a tagged EC2 CI and confirm it is routed to the expected group.

Appendix: References

Topic
Link
What is CSDM
servicenow.com/products/it-operations-management/what-is-csdm.html
Incident routing using CSDM
servicenow.com/community/itsm-blog/incident-routing-across-support-tiers-using-servicenow-and-csdm/ba-p/3398130
AWS tagging best practices
docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/

Series: ServiceNow on AWS (9 articles)

  1. 2
    Mapping AWS Resources to Business Applications in ServiceNow 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