OBLYTECH Logo
OBLYTECH Logo

Create AWS GovCloud credentials for Cloud Provisioning and Governance

To create AWS GovCloud credentials for Cloud Provisioning and Governance, obtain the GovCloud access key pair, then add an AWS Credentials record in ServiceNow. This procedure applies to AWS GovCloud (US). Discovery needs credentials with access to the provider account, and the regional setup continues with a GovCloud service account.

Prepare the region, account, and access requirements

Start with the region you intend to manage. Cloud Provisioning and Governance uses a credential set for each GovCloud region. The setup calls for a standard AWS account for each region for billing, the corresponding credentials, and a service account for that region. Keep those relationships clear before entering any values into ServiceNow.

The role required for the GovCloud credential creation procedure is sn_cmp.cloud_admin. Arrange for the person performing that procedure to have that role. Separately, have the AWS account owner establish the programmatic identity and its permissions. A ServiceNow role assignment does not establish the AWS permissions that identity needs.

Prepare a short account worksheet containing the intended region, the provider account, the billing account relationship, and the planned credential name. Keep secret values out of this worksheet. Its purpose is to make account selection reviewable without distributing the key pair alongside general project notes.

Menu paths and console labels change between ServiceNow and AWS releases, so confirm each one on your instance before you start. For the surrounding account and platform work, use the cloud provisioning setup guide for AWS, Azure, and VMware.

Create AWS GovCloud credentials for Cloud Provisioning and Governance

Work through the AWS identity preparation before creating the instance record. You need both an Access key ID and its matching Secret access key. A recognizable credential name helps later, but the name cannot correct an account mismatch or grant access to resources.

  1. In the AWS Management Console, search for IAM and open the Identity and Access Management service.
  2. Open Users and use Add user to create the Discovery identity.
  3. On Details, provide the User name and select Programmatic access for Access type.
  4. On Permissions, choose Attach existing policies directly and attach the policies appropriate to the required resource and billing access.
  5. Review the selections, then choose Create user.

Choose permissions deliberately. AdministratorAccess provides broad authority, including permission to provision cloud resources. The setup also permits a custom policy or a combination of policies that provides the required access. Choose policies by the operations the identity has to perform, not by the broadest policy available.

Before attaching policies, ask the AWS account owner which jobs the identity must do: read resource data, read billing data, or provision resources. Then check each attached policy against those jobs, because permission to read one kind of data does not cover the others.

Capture the key pair before leaving the AWS screen

On the completion screen, use Show to reveal the Secret access key and capture it for the ServiceNow credential form. Use Download .csv to save a backup CSV containing the user name, Access key ID and secret access key. Verify that the file exists and store the CSV and the secret in your approved secrets storage, and keep the secret out of tickets and troubleshooting notes.

Complete both actions before leaving that screen. The secret value is not displayed again through that completion step.

Keep the Access key ID and Secret access key together as a pair during entry. If several regional identities are being prepared, finish and label one account handoff before starting another. A key ID copied from one identity and a secret copied from another creates a misleading record: the fields contain values, but they do not represent a usable credential.

For the implementation handoff, record who owns the AWS identity and who maintains the corresponding ServiceNow record. Keep the credential record name in operational notes. This makes later access reviews possible without embedding secret material in tickets or troubleshooting narratives.

Save the AWS Credentials record in ServiceNow

On the instance, navigate to Orchestration > Credentials & Connections > Credentials. Choose New, then select AWS Credentials. Confirm the selected type before entering the key pair; the AWS form is the one with the two AWS key fields.

  • Name: provide a distinct description that helps operators identify the intended GovCloud region and account.
  • Active: set whether this credential is available for use.
  • Access Key ID: enter the identifier generated for the AWS identity.
  • Secret access key: enter the matching secret generated with that identifier.

Choose Submit to store the credential. Review the resulting record against the account worksheet, concentrating on the name, account association in your implementation notes, and intended active state. Avoid copying the secret into the review record as evidence that entry was completed.

The next configuration task is creating the AWS GovCloud service account for the region. Saving the credential completes the credential record step; continue the regional account setup before treating the environment as ready for discovery. The Cloud Provisioning and Governance overview explains how this work fits into the wider provisioning model.

For help planning this configuration, see ServiceNow implementation.

Check which credentials Discovery actually uses

When validating access, establish whether the MID Server uses instance credentials or an AWS IAM role. Cloud Discovery can use temporary credentials from an IAM role attached to an Amazon EC2 instance, when the account is set up as a trusted credential-less account.

Before you change a saved key pair, confirm which credential route the account actually uses, so the change is made on the route Discovery reads. Determine the authentication route before replacing credentials or broadening permissions.

Use an account-focused review when discovery access fails. Confirm the intended GovCloud region and provider account, the identity represented by the saved key pair, the policies attached to that identity, and whether an instance profile is taking precedence. These checks separate account selection from the question of which credential source is being used.

Keep validation notes tied to a specific operation. Record what resource or billing access was attempted, the selected account, and the observed result. A saved credential record is evidence of configuration, while a successful account operation is evidence of access. For broader investigation, use the Cloud Provisioning and Governance troubleshooting guide.

Work through a failed access attempt in that order rather than changing several inputs together. First establish the account and region, then establish the credential source, then compare the attempted operation with the identity’s permissions. After making a correction, repeat the same operation so the result can be compared with the original failure.

For handover, distinguish three milestones in the configuration notes: the key pair has been retained securely, the AWS Credentials record has been submitted, and the regional service account work has been completed. Assign an owner to the remaining validation. This prevents a team from interpreting a completed credential entry task as proof that all regional account work has finished.

If the team is configuring additional regions, repeat the account-to-credential mapping review for each region. Each additional GovCloud region needs its own AWS account, credential record and service account. Before a region is used, confirm that the key pair in its credential record belongs to that region’s AWS account, because a similar record name shows nothing about the account behind it.

Use the alias and credential report subflows in an access review

The alias subflow returns a credential alias for a service account

The CAL – Resolve Credential Alias subflow accepts a Service Account record and returns a Credential Alias record. If resolution fails, its Error output carries the explanation from the underlying action. Use the service account being investigated so the result relates to the intended account.

Alias resolution needs no cloud permission

That action requires no cloud permission. Using the subflow in custom flows requires an Integration Hub Enterprise subscription or an App Engine subscription, together with roles granted through delegated development or assigned to the user. Alias resolution and AWS authorization are separate checks.

The credential report lists account users and credential status

The CAL – AWS Generate Credential Report subflow returns account users and the status of credentials such as passwords, access keys, and MFA devices. Its credential_report_list output provides the report data, while Error captures an AWS endpoint error. Use it to review credential status alongside the account access investigation.

The credential report subflow needs two IAM permissions

The caller needs Iam:GetCredentialReport and Iam:GenerateCredentialReport. Inputs include Credential Alias, Use Mid, Mid Server, and Api Version. Custom-flow use requires an Integration Hub Enterprise or App Engine subscription and roles granted through delegated development or assigned to the user. These report permissions do not establish provisioning permission.