OBLYTECH Logo
OBLYTECH Logo

Configure temporary credential access for trusted AWS accounts

To configure temporary credential access for trusted AWS accounts, create an IAM role in the account that holds the resources, establish its trust relationship with the accessor account, and connect the corresponding cloud service accounts in ServiceNow. Assign the role through the appropriate assume-role parameters, then test the trusting account.

Map the trusting account and accessor account before configuration

The trusting account contains the resources that ServiceNow needs to reach. The trusted account supplies the identity used to assume the role; ServiceNow also calls this the accessor account. State those responsibilities plainly in your configuration notes. Reversing the two accounts can leave the records looking complete while the intended resource account remains inaccessible.

Start with a small account worksheet: resource account ID, accessor account ID, accessor user ARN, IAM role name, and corresponding ServiceNow account names. Record whether the accessor is a management account, member account, or discrete account. That distinction determines which assume-role parameter form you use later.

For a trust chain, establish the member account’s trust in the management account before configuring the management account’s trust in the accessor account. Treat each relationship as a separate checkpoint. A correct final link does not establish the preceding relationship.

For the Cloud Discovery configuration, the required ServiceNow role is discovery_admin. For the Cloud Provisioning and Governance configuration, use admin or sn_cmp.cloud_admin. Assign responsibility for the AWS work separately from these ServiceNow roles. Place the account relationships within your broader cloud security and access design before changing records.

Create the IAM role in the resource account

Sign in to the trusting account in the AWS Management Console. Create the IAM role there and supply the trusted accessor account ID in Account ID. The role belongs with the resources being accessed; the accessor account identifies the other side of the relationship.

  1. Open the IAM role’s Summary page and select the Trust Relationships tab.
  2. Select Edit trust relationship to inspect the policy document.
  3. Set the AWS parameter to the full user ARN for the trusted accessor account.
  4. Check that Action is sts:AssumeRole.
  5. Select Update Trust Policy.

Review the account ID and user ARN together before proceeding. Compare the account ID and user ARN in the saved policy with your worksheet before continuing. A role name copied from the right account does not prove the policy names the intended accessor.

Make the trust-policy review a distinct handoff between the AWS administrator and the person configuring ServiceNow. Ask the reviewer to identify the resource account, trusted identity, and assume-role action from the saved policy. This gives the team specific evidence to compare if the account test fails.

Configure temporary credential access for trusted AWS accounts in ServiceNow

Create the trusted service account before creating the trusting service account. Navigate to All > Discovery > Cloud Service Accounts, select New, complete the trusted account form, and select Submit. Match the record to the accessor account identified in the worksheet.

Return to Cloud Service Accounts and select New for the trusting account. In Accessor account, enter the trusted account’s name. Complete the remaining account fields and select Submit. Reopen the record to check that its accessor reference points to the intended account.

The navigation module requires Discovery Admin Workspace version 1.10.0 or later. For an earlier version, enter cmdb_ci_cloud_service_account.list in the navigation filter. Check the instructions against your instance and release, particularly when form layouts differ.

Use the existing cloud provisioning setup guidance when coordinating this account work with the wider environment.

Select the correct assume-role parameter form

The trusted account type determines where you assign the role. Choose the branch from your account worksheet rather than from the name of the IAM role. Similar role names can appear across accounts with different organizational relationships.

When the trusted account is a management account

Navigate to All > Cloud Provisioning and Governance > Organization Access Parameters > AWS Org Assume Role Parameters and select New. Configure Access role name and Cloud service account, then select Submit.

If member accounts share the same IAM role, use the full ARN with an asterisk for the account ID, in the form arn:aws:iam::*:role/MemberRoleName. For this shared-role arrangement, set Cloud service account to the management account name. Check the role portion carefully before adopting this pattern across members.

If member accounts have different IAM roles, create a separate entry for each member account. Supply that member’s full role ARN and its cloud service account. Do not turn a collection of differently named roles into a shared wildcard entry merely to reduce the number of records.

When the trusted account is a member or discrete account

Navigate to All > Cloud Provisioning and Governance > Organization Access Parameters > AWS Cross Assume Role Parameters and select New. Set Access role name to the role created for the trusting account. Set Cloud service account to the trusting account receiving access through that role, then select Submit.

Before testing, compare the saved assignment with the AWS role and the trusting account’s accessor reference. These three records describe the same access path from different sides. For help planning this work, see ServiceNow implementation.

Validate the account and isolate configuration failures

Navigate to All > Discovery > Cloud Service Accounts and open the trusting AWS service account. Under Related Links, select Create Discovery Schedule. On the Discovery Manager Cloud Discovery page, select Test Account.

A successful connection produces an account-validation message. An unsuccessful connection produces an error describing the cause. Record the result against the trusting account you tested. Testing the accessor alone does not demonstrate that the intended trusting account’s role assignment works.

  • Compare the failing account with the worksheet before changing credentials.
  • Inspect the saved trust policy for the intended user ARN and assume-role action.
  • Check the trusting account’s Accessor account reference.
  • Check the parameter form, role identifier, and account selected for the assignment.

Change one identified discrepancy at a time, then repeat the account test. Record the error text and the configuration change together in the work record. That sequence makes it easier to distinguish a corrected account relationship from an unrelated change made during investigation.

An EC2-hosted MID Server can introduce another credential path. On the MID Server record, add the configuration parameter mid.aws.instance_profile_name and enter the name or full ARN of the IAM role attached to the EC2 instance. The MID Server then uses the same IAM role set up for the corresponding AWS service account. Include the MID Server’s role configuration in the investigation when the observed credential behavior differs from the instance records.

For handling credential material beyond the account relationship itself, review ServiceNow secrets management and client-side credentials.

For acceptance, have the reviewer identify the exact trusting account tested, its accessor, and the matching role-parameter entry. File the successful validation result with that account record’s change notes. If the deployment includes both shared-role members and members with individual roles, choose a test account from each arrangement. Test one account from each arrangement, a shared-role member and a member with its own role. A successful test on one member does not prove that the others are configured correctly. Complete this review before handing the account relationship to the team responsible for ongoing discovery or provisioning operations.

Questions about adjacent credential workflows

Does Cloud License Estimator require stored credentials on an IAM-role account?

For Cloud License Estimator, an IAM-role configuration can leave Credential ID optional, but the AWS service account needs its IAM role configured. At least one service account needs credentials to generate temporary credentials. The role required for that estimator configuration is admin.

Can a Cloud License Estimator accessor be a member account?

Yes. An estimator service account configured with permanent credentials acts as an accessor and can be a management or member account. Select the account according to the trust relationship, rather than assuming that accessor responsibility belongs to the management account.

What can an automation check when it cannot find a credential alias?

The CAL – Resolve Credential Alias subflow accepts a Service Account record and returns Credential Alias. If resolution fails, its Error output carries the underlying action’s explanation. No cloud permission is required to execute that action; inspect the returned error before changing AWS trust.

What access is needed to use alias resolution in a custom flow?

Using that subflow in a custom flow requires an Integration Hub Enterprise or App Engine subscription. Its user access depends on roles assigned to the user or granted through delegated development. Treat that flow-authoring access as a separate check from the account-configuration roles above.