View a markdown version of this page

AWS Assurance and AWS Organizations - AWS Assurance

AWS Assurance and AWS Organizations

With an organization environment, you manage compliance readiness from your organization’s management account. With AWS Assurance, you get a unified view of compliance readiness across your organization. AWS Assurance discovers resources and runs assessments in your member accounts automatically.

For more information about AWS Organizations, see What is AWS Organizations? in the AWS Organizations User Guide.

How it works

An organization environment evaluates the member accounts of the organization that owns it. You create the environment in the organization’s management account.

AWS Assurance accesses each member account through that account’s AWS Assurance service-linked role, AWSServiceRoleForAssurance. AWS Organizations trusted access provisions member-account roles automatically. AWS Assurance accesses the management account through the service-linked role AWSServiceRoleForAssurance in that account.

By default, an organization environment includes the entire organization, including the management account. AWS Assurance automatically excludes accounts that have been suspended or closed. When accounts join, leave, or move within your organization, AWS Assurance tracks the change automatically. AWS Assurance resolves the set of accounts that an assessment evaluates when the assessment starts.

Prerequisites

Before you create an organization environment, make sure that you meet the following requirements:

  • You must belong to an organization in AWS Organizations.

  • You must sign in with the organization’s management account to enable trusted access. To create organization environments, sign in with the management account or the delegated administrator account.

  • You must enable trusted access for AWS Assurance. For more information, see Enabling trusted access.

Enabling trusted access

Trusted access allows AWS Assurance to access information about your organization and to provision the service-linked role in your member accounts. AWS Assurance uses the service principal assurance.amazonaws.com for this access.

You can enable trusted access in either of the following ways:

  • Using the AWS Assurance console: Sign in with the management account, and then enable AWS Organizations support. AWS Assurance enables trusted access on your behalf using your credentials.

  • Using AWS Organizations: Run the following command:

    aws organizations enable-aws-service-access --service-principal assurance.amazonaws.com

If trusted access is not enabled, creating an organization environment fails with a validation error.

If you disable trusted access, AWS Assurance can no longer evaluate the member accounts in your organization environments. For more information, see Using AWS Organizations with other AWS services in the AWS Organizations User Guide.

Registering a delegated administrator

You can register a member account as the delegated administrator for AWS Assurance. With a delegated administrator, you can create and manage organization environments alongside the management account, so you don’t need to use the management account for day-to-day compliance work.

Before you register a delegated administrator, make sure that you meet the following requirements:

  • You must sign in with the organization’s management account.

  • Your organization must have all features enabled.

  • You must enable trusted access for AWS Assurance. For more information, see Enabling trusted access.

  • The account that you register must be a member account of your organization. You can’t register the management account.

To register a delegated administrator, use the AWS Assurance console, the AWS Command Line Interface (AWS CLI), or the RegisterOrganizationDelegatedAdmin operation.

To register a delegated administrator in the console
  1. Sign in with the organization’s management account, and open the AWS Assurance console.

  2. In the navigation pane, choose Settings.

  3. Choose Register delegated administrator.

  4. For Member account ID to register as delegated administrator, choose the member account.

  5. Choose Register delegated administrator.

To register a delegated administrator with the AWS CLI
  1. Sign in with the organization’s management account.

  2. Run the following AWS CLI command:

    aws assurance register-organization-delegated-admin --account-id <account-id>

    Replace <account-id> with the ID of the member account that you want to register as the delegated administrator.

    The command returns the registered account ID and your organization ID. The account is now the delegated administrator for AWS Assurance.

When you register a delegated administrator, AWS Assurance creates the service-linked role in the management account if it doesn’t already exist.

The following behavior applies to the delegated administrator:

  • The management account owns the organization environments that the delegated administrator creates.

  • When the delegated administrator lists environments, the results include its own environments and the organization environments in the management account.

  • The delegated administrator can’t add a customer managed AWS Key Management Service (AWS KMS) key or an S3 connection to an organization environment. Do these from the management account.

Deregistering a delegated administrator

To remove the delegated administrator, use the AWS Assurance console, the AWS CLI, or the DeregisterOrganizationDelegatedAdmin operation.

To deregister a delegated administrator in the console
  1. Sign in with the organization’s management account, and open the AWS Assurance console.

  2. In the navigation pane, choose Settings.

  3. Under Organization delegated administrators, select the account.

  4. Choose Remove administrator.

To deregister a delegated administrator with the AWS CLI
  1. Sign in with the organization’s management account.

  2. Run the following AWS CLI command:

    aws assurance deregister-organization-delegated-admin --account-id <account-id>

    Replace <account-id> with the ID of your delegated administrator account.

    The command returns the deregistered account ID and your organization ID. The account is no longer the delegated administrator for AWS Assurance.

After you deregister the account, it can no longer access your organization environments. The environments and their resources remain in the management account.

Creating an organization environment

From the management account or the delegated administrator account, you create an environment and choose the organization scope. To do this, set the environmentScope parameter to ORGANIZATION. The default value is SINGLE_ACCOUNT, which evaluates only your own account.

By default, an organization environment evaluates your entire organization.

You can also change an existing environment’s scope with the UpdateEnvironment operation. Switching back to SINGLE_ACCOUNT stops future organization-wide evaluation. The service-linked role and the AWS Assurance configuration recorder remain in each member account. To delete the role, see Deleting the service-linked role.

Scoping an environment to organizational units

Instead of the entire organization, you can scope an organization environment to one or more organizational units (OUs). To do this, specify organizational unit IDs with the organizationalUnitIds parameter. When you provide this list, it must contain at least one OU.

The following behavior applies when you scope an environment to OUs:

  • AWS Assurance automatically includes accounts in nested OUs under a listed OU.

  • AWS Assurance includes the management account only when it is located under one of the selected OUs.

  • When you omit OU scoping, the entire organization is in scope.

Organization environments and cross-account access

Organization support and cross-account connections are mutually exclusive on an environment. You cannot enable organization scope on an environment that has active or pending cross-account connections. Remove the cross-account connections and revoke any outstanding invitations first. AWS Assurance accesses organization member accounts through the service-linked role instead.

Likewise, you cannot add cross-account connections to an organization environment.

Assessments for large organizations

Organization assessments evaluate accounts in parallel, in bounded batches. An assessment’s duration grows with the number of accounts in scope.

While an organization assessment runs, AWS Assurance reports progress as the number of accounts evaluated out of the total.

An organization assessment supports up to 2,000 accounts. If more accounts are in scope, AWS Assurance fails the assessment immediately and returns an explanatory message instead of running it on some of the accounts.