To configure Discovery credentials in ServiceNow for cloud accounts, create the provider credential, associate it with the correct cloud service account, and check the account’s access model before running Discovery. For AWS, permanent keys and trusted account access use different field combinations. Keep cloud API authentication separate from credentials used to inspect individual hosts.
Define the account boundary before entering credentials
Start with the cloud account you intend to discover, its account identifier, and the access arrangement approved by its owner. An AWS credential record holds authentication values; a cloud service account records which provider account Discovery should access.
For permanent AWS access, the required roles are AWS Management Console administrator on the provider side and discovery_admin for Cloud Discovery. The corresponding Cloud Provisioning and Governance procedure requires admin or sn_cmp.cloud_admin. Assign responsibility for the specific action being performed instead of assuming that a cloud administrator automatically has the required ServiceNow role.
Write down the intended account, credential name, account owner, and expected discovery scope before configuration. This is an implementation checklist: it gives reviewers a way to spot a valid credential linked to the wrong account. Keep secret values out of that checklist. Record references to the protected records instead.
Cloud API access also needs a separate decision from operating system access. If the next objective is inspecting servers inside the account, review credentials required for host discovery when planning that additional work.
Create the AWS Discovery credential record
With the permanent credential approach, obtain the Access Key ID and Secret access key for the approved AWS identity. The secret is not displayed again after its initial creation. Arrange secure handling before generating it, so the person creating the identity can transfer the values into the intended credential record without placing them in a ticket or shared working document.
- In ServiceNow, navigate to Discovery > Credentials.
- Select New, then AWS Credentials.
- Enter a unique, descriptive Name that makes the account relationship understandable to another administrator.
- Set Active according to whether the credential should be available for use.
- Enter the provider values in Access Key ID and Secret access key.
- Select Update or Submit to save the record.
Choose AWS permissions for the intended activity. Do not attach AdministratorAccess as a shortcut around choosing permissions for the task. It can authorize cloud resource creation, so assess that capability before using it for inventory work. Review the policies against the resource access required for the approved task. A successful credential save establishes that a record exists; it does not establish that the AWS identity has the right permissions.
Use names that distinguish accounts and environments without embedding secrets. For example, a name can describe the production inventory account and its owner. Keep the account identifier available for the following association step, where selecting a similarly named credential from another environment would create a misleading configuration.
Associate AWS credentials within Cloud License Estimator
After creating the permanent AWS credential, create the AWS service account for the workflow you are configuring. Cloud License Estimator has its own service account setup, which requires admin. Check this Brazil configuration against your instance and release before applying it.
Open ITOM Cloud License Estimator > Home through All in the navigation filter. Choose the Service Account List icon, then Create New on the Service account page. Decide whether the account will use permanent credentials, a management account IAM role, or a member account custom IAM role before completing the access fields.
For permanent access, use Name for the AWS account name, select AWS in Cloud provider, and put the AWS account ID in Account ID. In Credentials, choose the AWS Credential ID for the permanent credential. An account configured this way is an accessor account and can be either a management account or a member account. Mark a management account using Master account; leave the management-account association blank when it does not apply. Accessor Account and Accessor role ARN are not used for permanent access.
For a management account reached through an IAM role, enter the account name and ID and select AWS as the provider. Mark the account as a management account using Master account, leaving the management-account reference blank. Leave Credentials empty. Set Accessor Account to the account trusted by the management account’s role, and put the complete role ARN in Accessor role ARN.
A member account using a custom IAM role also needs its own service account configuration. Enter its name and Account ID with AWS selected. Do not mark it as a management account; select its management account from the Master account list instead. Credentials stays empty. Accessor Account can identify the management account or another member account, provided that account has the trust relationship with the member account’s role. Include the complete role ARN.
A member account using OrganizationAccountAccessRole, the default role, does not require a separate service account configuration for temporary credentials. That exception does not extend to custom member roles. Once the fields match the chosen account type, select Save. Review the account ID and credential or trusted-account selection together, so a correctly entered key is not associated with a different environment.
Review MID Server scope and credential selection
An API key credential has its own configuration fields. Name identifies the record, Active controls availability, and API Key contains the authentication value. Use the credential type required by the target integration. An API key record and an AWS Credentials record are different configuration choices; do not substitute one for the other based on a similar name.
For API key credentials, Applies to can specify All MID servers or Specific MID servers. When selecting specific servers, populate MID servers with the intended servers. Review this scope alongside the execution plan. It is worth checking a restricted scope before replacing a key that appears unavailable to the server running the work.
The Order field controls the sequence in which Discovery tries an API key credential when attempting device login. Smaller numbers appear earlier. If all credentials share one Order value, or all have no Order value, the instance chooses a random sequence. Deliberate ordering matters when managing many credentials or targets with account lockout policies; it does not replace checking that the selected credential belongs to the target.
If credential handling also involves a separate storage design, use external credential storage for ServiceNow to plan that part of the implementation. For network devices, keep the SNMP credential and parameter checks with the device workstream.
Check aliases without confusing them with account access
The CAL – Resolve Credential Alias subflow accepts a Service Account record and returns a Credential Alias record for an AWS credential. It also exposes an Error string when the underlying action cannot return an alias. In a flow that uses this subflow, inspect both outputs before treating a resolved alias as evidence that the full discovery operation will succeed.
Resolving the alias requires no cloud permission. Using this subflow in custom flows requires an Integration Hub Enterprise subscription or an App Engine subscription, with Flow Designer access provided through delegated development or assigned roles. These requirements apply to that subflow usage; they do not describe the role needed to create a cloud service account.
Keep the validation question precise: does the service account resolve to the intended credential alias? After that, check the provider account and intended resource access separately. This sequence helps identify whether a configuration issue belongs to record association, alias resolution, or cloud permissions before changes spread across several records.
For help organizing this setup, see ServiceNow implementation.
Prepare a controlled handoff for the first discovery run
Review the saved configuration with the cloud account owner before expanding the scope. Confirm the account number, management account relationship, credential reference, and intended access method. Agree on which resources should be visible so that the first result can be evaluated against a defined expectation instead of a vague impression that authentication worked.
For the first run, record the execution time and outcome alongside the account reference, then compare the discovered scope with the account you configured. Keep configuration changes attributable: change one association or permission decision at a time and record the result before moving to another account.
For the handoff record, retain the service account reference, credential record reference, responsible owner, and review outcome. Exclude access keys and secrets. If cloud inventory is followed by device or host work, assign those credentials their own review rather than extending the cloud account approval to unrelated targets.
Questions about adjacent cloud credential tasks
Can Cloud License Estimator generate temporary AWS credentials?
Yes. Its AWS configuration can use IAM roles with STS to generate temporary credentials. The Credential ID can be optional in that arrangement, but at least one service account needs credentials to generate temporary credentials. Configuring AWS credentials for Cloud License Estimator requires admin.
What does the AWS credential report subflow return?
CAL – AWS Generate Credential Report returns credential status information for account users, including passwords, access keys, and MFA devices. Its credential_report_list output contains the report data, while Error contains an error returned by the AWS endpoint.
Which cloud permissions does that report require?
The caller needs Iam:GetCredentialReport and Iam:GenerateCredentialReport. Custom flow usage also requires Integration Hub Enterprise or App Engine subscription access and the applicable delegated development or assigned Flow Designer roles.
Can the report call use a MID Server?
Yes. Use Mid indicates whether outbound calls should use a MID Server, and Mid Server identifies the server. These are inputs to the report subflow, so review them in that flow’s configuration.
Cloud accounts, permissions and host credentials must exist before discovery is scheduled, and named owners keep them current.
Before a Discovery schedule goes live, each cloud account or subscription in scope needs an authorized identity with permissions for that scope, and each host group needs tested credentials. Each record works best with a named owner: the account owner decides scope, a cloud administrator maintains the identity, and a ServiceNow administrator keeps the records current.
Build the access list before the schedule
- Each cloud account or subscription in scope, with the owner who approved its access.
- The identity that calls the cloud API: an AWS identity with discovery permissions, or an Azure service principal with appropriate permissions.
- Permissions limited to the regions and resource types in scope.
- Host-type credentials for each operating system group, with the list of servers each one reaches.
- Firewall paths from the MID Server to the hosts and to the ServiceNow instance.
- A CI owner and support contact for each source, so a failed collection has someone to call.
A typical production sign-off covers six gates: firewall access, host-type credentials, cloud service accounts, CI ownership and support details, development testing, and stakeholder signoff. Track each as its own item, since one missing gate can delay the whole rollout.
Prove access before the schedule is switched on
Run a small proof first. Access problems found after a rollout date is committed cost project time.
- Choose two or three representative systems for each account and host type, and include one system the credential should not reach.
- Run discovery against that set only, outside the recurring schedule.
- For each failure, name the permission or credential that blocked it before changing anything.
- Widen access in stages, and note who approved each change.
- Switch on the recurring schedule only when the representative systems return the expected resources and the excluded system is refused.
Assign ongoing ownership for each record
In most implementations the split looks like this:
- Cloud account owner: approves new accounts, regions, and scope changes before anyone edits a permission.
- Cloud administrator: maintains the identity, its keys or service principal secret, and its role assignments, on a rotation schedule set by your security policy.
- ServiceNow administrator: maintains the credential and cloud service account records, with their owner and support details.
- Host team: maintains host-type accounts and tells the Discovery owner when a password or key changes.
- Discovery owner: reruns the representative proof after each change, upgrade, or discovery-pattern update.
Permissions drift after go-live is easy to miss, since nothing fails on the day it happens. As of September 2026, Azure discovery-pattern permissions are updated periodically, so a permission set that worked at go-live can fall short later.
Review every record on a fixed cadence, and whenever an identity holder changes role or leaves. Each record should still show its account ID, owner and credential.