AWS discovery in ServiceNow connects cloud service accounts to a MID Server, uses permitted AWS APIs to identify resources, and records their configuration and relationships. Start with account access and a scoped discovery schedule, validate representative resources in the CMDB, then add event updates to maintain the inventory between scheduled runs.
Define the AWS account boundary before connecting
Build the first run around an account and a known set of resources. Record the account identifier, whether it is independent or part of AWS Organizations, the regions containing the resources, and the expected resource types. Use that list as your acceptance criteria rather than treating a completed schedule as proof of coverage.
Management accounts and member accounts need different access decisions. For a first rollout, choose a member with resources that the cloud owner can identify and compare against the resulting inventory.
Separate cloud resource inventory from information inside a virtual machine. Pattern-based Cloud Discovery supports virtual resource classes and tag-based service mapping. Hardware details, installed software, and application discovery can require another method. Compare AWS discovery methods, events, and SSM before making host-level data part of the acceptance criteria.
Choose credentials and the account trust route
Cloud Discovery reaches AWS service accounts through MID Servers. Decide which account supplies access and which accounts trust it before entering credentials. In the ServiceNow interface, the trusted account is called the accessor account. The trusting account relies on that accessor for access to its resources.
For an independent account, permanent credentials provide a direct setup route through Connections and Credentials. For multiple accounts, IAM roles and temporary credentials can reduce the number of permanent credentials to maintain. AWS Security Token Service supplies temporary credentials when the MID Server assumes an authorized role.
- Identify the accessor account and the target accounts it must reach.
- Configure the required IAM permissions and trust relationships for that route.
- Create the AWS service account records and associate permanent credentials where that is the selected method.
- For role-based access, check the role and assume-role parameters associated with the relevant accounts.
- Test the connection before expanding the discovery scope.
A trusting account can trust an accessor with permanent credentials or an accessor that uses an IAM role without permanent credentials. Member accounts can also use a chain through their management account. Write down the selected chain so that a failed member-account discovery can be checked at each trust boundary.
Credential precedence matters during troubleshooting. Permanent credentials on a member account take precedence over temporary credentials. Where the member trusts its management account, Discovery next checks member-specific assume-role parameters, then management-account parameters, and finally the default OrganizationAccountAccessRole configuration. Accounts that trust an accessor use the cross-account assume-role parameters when permanent credentials are absent.
Before testing a change to role-based access, check for an existing permanent credential on the target service account. Otherwise, the run may continue using that credential, leaving the intended trust route untested.
Prepare the MID Server, permissions, and pattern coverage
Review the installed Discovery and Service Mapping Patterns application and the enabled patterns. Some AWS resource discovery can require an application update. Check the behavior described here against your instance, release, and content versions before changing production settings.
Resource-specific API permissions also need checking against the selected patterns. Treat a successful connection test as an access checkpoint; it does not demonstrate that the identity can retrieve each required resource type.
Keep AWS IAM permissions separate from ServiceNow application roles. In Cloud Provisioning and Governance, assigning roles requires user_admin or admin. The sn_cmp.cloud_admin role configures that application and its cloud infrastructure, including service accounts. These responsibilities do not replace AWS permissions on the account being discovered.
Check network requirements for the chosen discovery method. IP-based horizontal discovery requires connectivity from the MID Server to the target virtual machine and an operating system credential. Pattern-based cloud inventory has different requirements. Where initial communication with EC2 instances is needed, authorize the corresponding inbound traffic from the MID Server.
Use the available cloud discovery patterns to decide which resource types belong in the first test. AppSync APIs, DMS endpoints, and Network Firewall resources have patterns that are disabled by default. Enable the relevant pattern before expecting those resources to appear.
For those extended inventory patterns, also check the Resource Inclusion List [sa_cloud_inventory_resource_whitelist]. The relevant resource should be removed from that list to avoid duplicate discovery through overlapping inventory routes.
Run a scoped schedule and inspect the resulting records
Establish account access before the scoped discovery run. Begin with the agreed account scope and compare the discovered datacenters with the regions in your acceptance list. Keep a record of the schedule, account, test time, and expected objects so that the cloud owner and CMDB owner can inspect the same result.
Inspect records by resource identity and relationship, not just total count. An AppSync API has an extended inventory record in AWS AppSync API [cmdb_aws_appsync_api] and a linked Cloud Messaging Service CI. A DMS endpoint has an AWS DMS Endpoint [cmdb_aws_dms_endpoint] record linked to a Cloud Resource CI. Review extended inventory through All > Configuration > AWS.
For AppSync and DMS, inspect the Configuration Item reference on the extended inventory record as well as the CI’s hosting relationship. The reference points to a CMDB record; it is not itself an entry in CI Relationship [cmdb_rel_ci]. A missing reference and a missing hosting relationship therefore need separate checks.
For a network sample, check the Network ACL CI, its hosting AWS Datacenter, and its connections to the cloud network and ACL endpoints. For Network Firewall, check the Cloud Resource identity and the AWS::NetworkFirewall::Firewall resource type. These checks distinguish a recognizable cloud inventory from a collection of unrelated names.
For AppSync, compare Object ID on the extended inventory record with Object ID on the Cloud Messaging Service CI. Both hold the API’s Amazon Resource Name (ARN), while API ID supplies another identifier on the inventory record. Check the CI Type for AWS::AppSync::API. This gives the reviewer a way to match the API across the two records without relying on its display name.
For a DMS endpoint, inspect Endpoint Type to distinguish a source from a target, then compare Database Name and Engine Name with the expected endpoint. The extended inventory also includes Server Name, Port, and Status for checking the database connection details. Its Cloud Resource CI uses AWS::DMS::Endpoint as Resource type. Use the ARN in Object ID to match the records before investigating a mismatch in those details.
For the ACL sample, follow the Cloud Network’s Contains::Contained by relationship to the Network ACL. The ACL connects to an ACL Endpoint through Implement End Point To::Implement End Point From; the Cloud Subnet connects to that endpoint through Use End Point To::Use End Point From. Inspecting both paths helps establish whether the discovered ACL and subnet connect through the expected endpoint. Compare Object ID as well as Name on the ACL and endpoint records.
Before widening the schedule, ask the cloud owner to review one expected object from each selected resource type. Record missing identities, incorrect relationships, and unexpected duplicates separately. Resolve the smallest failing case first, then repeat the scoped run before adding another member account. This gives the next expansion a clear comparison point.
For help planning this work, see ServiceNow implementation.
Add event updates after the baseline is understood
AWS events-driven discovery updates cloud records between scheduled runs. AWS Config sends an SNS notification to the ServiceNow Cloud Events REST API. Accepted events enter Cloud Event [sn_cmp_cloud_event], and the Cloud Event Scheduler processes events in the Ready state.
Set this up after discovering valid AWS service accounts and their associated logical datacenters. The requirements include the Discovery plugin, the discovery_admin and sn_cmp.cloud_event_integration roles, and an AWS role with access to SNS, AWS Config, and the resource types being tracked.
The sn_cmp.cloud_event.use_response_mapping_aws property defaults to true. When a suitable response mapping exists, event processing uses it to create or update the CI. Otherwise, it invokes the appropriate Discovery pattern. During a controlled test, follow a known resource change through the event record to the resulting CI update.
Keep baseline inventory validation and event validation as separate acceptance checks. One demonstrates that the selected accounts and resources are discoverable; the other demonstrates that a subsequent change reaches the right record. For the broader account workflow, use Cloud Discovery Workspace.
Questions that arise during an AWS rollout
Why can a temporary credential change appear delayed?
The instance caches temporary member-account credentials for 60 minutes by default. Check that interval when testing a role change, and review the MID Server properties governing credential caching before drawing conclusions from an immediate rerun.
Does GovCloud use the same account setup?
GovCloud discovery requires a datacenter URL when creating an AWS service account. Include that URL requirement in the account preparation checklist before investigating a missing GovCloud resource.
Where do discovered AWS tags appear?
The AppSync API, DMS endpoint, and Network Firewall patterns collect tags into Key Value [cmdb_key_value]. For AppSync and DMS, the Configuration item reference connects those entries to the corresponding CI.
What happens to failed cloud events in a domain-separated instance?
If event processing cannot identify the service account domain, an event can remain unassigned and visible across domains. Set sn_cmp.error_events.default_domain to the service-provider domain sys_id to restrict failed-event visibility to its administrator.