To configure access using permanent credentials, create an AWS identity with programmatic access, then save its access key ID and secret access key in an active AWS Credentials record in ServiceNow. Discovery uses provider credentials to access cloud data. Complete the AWS service account setup so the credential record supports the intended account.
Define access before creating the credential
Start with the AWS account and the operation that needs access. Discovering resources and provisioning resources can require different permissions. A saved credential supplies identity information; the AWS policies attached to that identity determine what requests it can perform. Record the intended account, the credential name, the owner and the operations it supports, but never the key values.
The AWS-side preparation requires an AWS Management Console administrator. For Cloud Discovery, the ServiceNow role is discovery_admin. For Cloud Provisioning and Governance, the required role is admin or sn_cmp.cloud_admin. Assign these responsibilities to the people performing those specific actions rather than treating one role as permission for the entire process.
Choose permissions deliberately. AdministratorAccess grants extensive access, including resource provisioning. Instead of selecting it as a troubleshooting shortcut, assess whether a narrower policy or a combination of policies covers the intended operation. Separate the question of whether authentication succeeds from whether an identity should have permission to change infrastructure.
Use the broader cloud security and access design to settle account boundaries and ownership. The instructions below follow the Brazil credential workflow; check console navigation and available fields against your instance and release before making changes. Cloud Provisioning and Governance is being prepared for deprecation from the Brazil release and is no longer installed on new instances, so confirm it is installed on your instance before following the Cloud Provisioning steps below.
Configure access using permanent credentials in AWS
Create or identify the programmatic user that will represent the integration. Keep a record of its purpose and account association without recording secret values in the change description. A recognizable identity makes it easier to determine whether a later access failure belongs to this integration or another automation using the same account.
- Open Identity and Access Managements (IAM) > Access Management > Users in the AWS Management Console.
- Select Users and then Add user. Enter the User name and select Programmatic access as the Access type.
- Proceed with Next. On the Permissions page, use Attach existing policies directly and select the policies appropriate to the required work.
- Review the selections before choosing Create user. Confirm the identity and policy scope together.
- On Security Credentials, capture the Access key ID and Secret access key for the ServiceNow credential record.
The secret value cannot be displayed again after leaving that credential creation page. Use Show to display it while available. If you select Download .csv to retain the generated credential details, verify the download and store it securely. Treat the downloaded file as a secret-bearing artifact rather than a routine configuration attachment.
Plan the handoff before generating the key. The person entering the ServiceNow form needs both values from the same generated pair. Avoid placing them in tickets, shared notes, or screenshots.
Store the key pair in the AWS Credentials record
In ServiceNow, navigate to Discovery > Credentials. Select New and choose AWS Credentials. This credential type has the fields needed for the AWS key pair. Give the record a Name that distinguishes its purpose and account; a generic name becomes difficult to interpret when several integrations exist.
- Name: enter a unique, descriptive label for the credential.
- Active: enable the option when the credential should be available for use.
- Access Key ID: enter the identifier generated for the intended AWS user.
- Secret access key: enter the secret belonging to that same identifier.
Choose Update or Submit to save the record. Reopen it and check the descriptive details and Active setting. Verify the identity association through your controlled handoff record rather than exposing the secret again for a visual comparison. Saving successfully establishes that a record exists; it does not establish that AWS accepts the credentials or permits the required request.
Keep the credential type aligned with the authentication mechanism. An AWS key pair belongs in AWS Credentials. A generic API Key record has different fields and behavior, so a familiar-looking key value is not a reason to substitute one credential type for another.
Where your access design includes other secret-handling workflows, consider the separate guidance on client-side credentials and secrets management. Decide where a secret belongs before distributing copies across operational tools.
Connect the credential to the account that needs it
After saving the permanent AWS credential, continue with AWS service account configuration in ServiceNow. Keep the provider identity, stored credential, and service account relationship clear in the implementation record. A correctly entered key for the wrong account can still leave the intended discovery or provisioning operation unable to proceed.
Cloud License Estimator provides a specific example of this relationship. Its AWS credential configuration requires admin. From ITOM Cloud License Estimator > Home, Go to Credentials opens Credentials (discovery_credentials). Creating an AWS Credentials record generates a Credential ID used by subsequent configurations. In a permanent-credential service account, Credentials selects that AWS Credential ID.
In that estimator workflow, a service account configured with permanent credentials is an accessor account and can be a management account or member account. Do not translate its configuration rules into unrelated Discovery settings. Use the relevant account workflow to establish the association.
For Cloud Action Library workflows, CAL – Resolve Credential Alias accepts a Service Account record and returns a Credential Alias record. It does not require a cloud permission to execute. If resolution fails, inspect its Error output before investigating the AWS policy: the action may have failed to find the account’s suitable alias.
For help with this work, see planning a ServiceNow implementation.
Validate the access path and investigate failures
Run a controlled check of the intended operation after completing the account setup. Keep the account, credential name and execution context stable while investigating so that a change in identity or account does not obscure the effect of a permission adjustment.
First inspect the execution context. On an EC2-hosted MID Server set up for IAM roles, the mid.aws.instance_profile_name configuration parameter names the IAM role the server uses to retrieve temporary credentials. Check that parameter and the matching service account before treating a stored credential as the one in use. Because the role-based path is set by the MID Server parameter, check that parameter before concluding that an update to the permanent credential record changed the identity in use.
To set the parameter, go to All > Discovery > MID Servers, select the MID Server installed on the EC2 instance in the relevant AWS service account, open its Configuration Parameters related list, and select New. Choose mid.aws.instance_profile_name in the Parameter name field and enter the name of the IAM role attached to the instance in the Value field. The value accepts either the role name or the full ARN. Creating the parameter requires discovery_admin or sn_cmp.cloud_admin, and the role must match the one set up for the corresponding AWS service account. Submit the form, then confirm the new parameter appears in the MID Server record.
Next inspect the association and key pair. Check that the intended account refers to the expected credential, that Active is enabled, and that the identifier and secret were entered as a pair. Then compare the requested operation with the AWS policy. Broader access is not a substitute for identifying the failed request.
If your workflow includes CAL – AWS Generate Credential Report, its caller needs Iam:GetCredentialReport and Iam:GenerateCredentialReport. The subflow accepts Credential Alias, Use Mid, Mid Server, and Api Version inputs. Its Error output carries the AWS endpoint error, while credential_report_list contains the report data. The Error output shows the message returned by the AWS endpoint, so read it before assuming the credential or the permission is at fault.
Using these CAL subflows in custom flows requires an Integration Hub Enterprise subscription or an App Engine subscription, plus roles granted through delegated development or assigned for Flow Designer access. Confirm those prerequisites separately from the cloud permissions. Keep the maintenance owner and review process alongside your password management practices, without treating a cloud key as an interactive password.
Questions about related credential choices
Does an AWS credential also authenticate Azure?
Azure uses a separate credential type. Azure Service Principal credentials use the Client Secret authentication method, which shows a Secret key field on the form. Client Assertion is not supported. Create the provider-specific record rather than placing Azure values into the AWS key fields. In the Cloud Admin Portal, go to Manage > Credentials, select New, and choose Azure Service Principal. After you save the record, the Discover Subscriptions related link finds every subscription tied to the principal, and the instance creates a service account for each one.
Can Azure Cloud License Estimator reuse a credential?
Yes. Existing Azure credentials configured in the instance can be used for Cloud License Estimator. The estimator credential configuration requires admin and uses New > Azure Service Principal from its Credentials page.