Configure access using temporary credentials based on trusted AWS accounts with AWS credentials
Configure the trusting account whose resources need to be accessed, to rely on the trusted account using the Identity and Access Management (IAM) role.
Before you begin
- Familiarize yourself with the Amazon documentation on Creating a role to delegate permissions to an IAM user.
- Decide which AWS account is going to be the trusted account. You use the trusted account to configure temporary credentials for Cloud Discovery using IAM roles. The trusted account that you use to access other accounts using IAM roles is referred to as an accessor account.
- If you're setting up a trust chain where a member account trusts a management account, and the management account trusts an accessor account, verify that you've configured the member account to trust the management account. For more information, see Configure access using temporary credentials for trusting AWS member accounts in management-accessor trust chain.
- Confirm that Discovery Admin Workspace is using at least version 1.10.0. The navigation module isn't available with earlier versions. To access Cloud Service Accounts with an earlier version, enter in the navigation filter: cmdb_ci_cloud_service_account.list.
Role required:
- For Cloud Discovery: discovery_admin
- For Cloud Provisioning and Governance: admin or sn_cmp.cloud_admin
About this task
During this configuration, you create an IAM role for the trusting account, and then configure the trusted service account for the trusting account at ServiceNow AI Platform. Finally, you associate the IAM role you created for the trusting account with the trusting account itself.
Procedure
-
Create an IAM role for the trusting account and configure the trust relationship between the user assuming this role and the trusted (accessor) account.
-
On the ServiceNow AI Platform, configure the trusted service account.
-
On the ServiceNow AI Platform, configure the trusting service account.
-
On the ServiceNow AI Platform, assign the AWS IAM role to the trusting account, using the relevant form, based on the relationship to the trusted account.
Trusted account type Steps Management account - Navigate to .
- Select New.
- On the form, configure only the following fields for the trusting member account:
Table 1. Cloud Service Account AWS Org Assume Role Params form Field Definition Access role name Name of the IAM role created for the trusting account. - If IAM roles are the same across all member accounts: Enter the full ARN using an asterisk (*) as a wildcard for the account ID in the format:
arn:aws:iam::*:role/MemberRoleName.
For example: arn:aws:iam::*:role/SN_MEMBER_ACCOUNT_ROLE.
- If IAM roles are different across member accounts: Enter the full ARN of the specific IAM role for each member account in a separate entry.
Cloud service account Name of the trusting account for which you are providing access using the IAM role. - If IAM roles are the same across all member accounts: Enter the management account name.
- If IAM roles are different across member accounts: Enter each member account in a separate entry.
- If IAM roles are the same across all member accounts: Enter the full ARN using an asterisk (*) as a wildcard for the account ID in the format:
arn:aws:iam::*:role/MemberRoleName.
- Select Submit.
Member or discrete account - Navigate to .
- Select New.
- On the form, configure only the following fields for the trusting account:
Table 2. Cloud Service Account AWS Cross Assume Role Params form Field Description Access role name Name of the IAM role created for the trusting account. Cloud service account Name of the trusting account for which you are providing access using the IAM role. - Select Submit.
What to do next
Verify that ServiceNow applications can access the trusting service account using the IAM role:
- Navigate to .
- Select the trusting AWS service account.
- Under Related Links, select Create Discovery Schedule.
- In the Discovery Manager Cloud Discovery page, select Test Account.
- If the connection is successful, a message displays indicating the account validation is successful.
- If the connection isn't successful, an error message displays indicating the cause of failure.