View a markdown version of this page

Setting up AWS Assurance - AWS Assurance

Setting up AWS Assurance

Before you evaluate your compliance readiness with AWS Assurance, you complete a few setup tasks. This chapter describes the accounts, permissions, and services that AWS Assurance depends on, the AWS Regions where the service is available, and how users sign in to the web application.

An environment is the top-level resource in AWS Assurance, where the service discovers and evaluates your resources. Creating an environment does not by itself start any evaluation of your resources or incur evaluation charges.

Prerequisites

Before you set up AWS Assurance, make sure that you meet the following requirements.

The following requirements are mandatory:

  • An AWS account.

  • A supported AWS Region. For more information about Region requirements, see Region considerations.

  • Administrator permissions to create and manage environments, including iam:CreateServiceLinkedRole. You need this permission every time that you create an environment, even if the service-linked role already exists. For an example policy, see Creating and managing environments.

You don’t need to turn on AWS Config. AWS Assurance creates its own AWS Config service-linked recorder to discover your resources, and you don’t pay AWS Config charges for this recorder. For more information, see Resource discovery with AWS Config.

The following requirements apply only in specific cases:

  • You need an IAM Identity Center instance only if you want users to sign in through IAM Identity Center. You don’t need IAM Identity Center to sign in with IAM credentials. For more information, see Signing in to the web application.

  • To create an organization environment, use your organization’s management account to enable AWS Organizations trusted access for AWS Assurance. You can then create the environment from the management account or from a delegated administrator account. We recommend that you register a dedicated security account as the delegated administrator, and create and manage the environment from that account. For more information, see Enabling trusted access and Registering a delegated administrator.

The following items are optional:

  • A customer managed key for evidence encryption. By default, AWS Assurance encrypts your data at rest with an AWS owned key at no additional cost. Configure a customer managed key only when you must control or audit the keys that protect your data. For more information about encryption at rest, see Encryption at rest for AWS Assurance.

  • AWS Security Hub CSPM. If you use AWS Security Hub CSPM, AWS Assurance can read its findings as evidence.

IAM roles used by AWS Assurance

AWS Assurance uses the following IAM roles.

Role Purpose Required Who creates it

Service-linked role (AWSServiceRoleForAssurance)

Discovers and evaluates your resources. You can’t specify a different role.

Yes

AWS Assurance, when you create an environment or accept an invitation. In an organization, AWS Organizations trusted access creates the role in each member account.

Operator access role

Opens the web application from the AWS Management Console for users who sign in with IAM credentials.

Only for IAM sign-in

You, or the console when you choose to create a new role.

Identity Center role

Opens the web application for users who sign in through IAM Identity Center. Its trust policy must allow sts:AssumeRole and sts:SetContext.

Only for IAM Identity Center sign-in

You, or the console when you choose to create a new role.

When the console creates the Operator access role or the Identity Center role, it attaches the AWS managed policy AssuranceOperatorPolicy. Permission sets then narrow what each user can do in the web application. An environment can have both access roles. For more information, see Controlling web application access with permission sets.

Signing in to the web application

Important

If you want users to sign in through IAM Identity Center, create the environment in the same Region as your IAM Identity Center instance.

How you open the AWS Assurance off-console web application depends on how you sign in:

  • IAM credentials (the default, with no extra setup) – In the AWS Management Console, choose Operator access on the environment page.

  • IAM Identity Center (optional) – Open the web application from your AWS access portal, or use its URL directly. You don’t need to sign in to the AWS Management Console. The URL has the form https://domain-prefix.assurance.region.app.aws. If you didn’t enter a domain prefix when you created the environment, the prefix is the environment ID.

When you configure IAM Identity Center for an environment, you provide an existing IAM Identity Center instance. AWS Assurance then creates and manages an IAM Identity Center managed application in your instance on your behalf. AWS Assurance creates this application when you create the environment and configures it so that your users can sign in.

AWS Assurance uses the Identity Center role to vend credentials for your federated users through Trusted Identity Propagation. When you configure IAM Identity Center in the console, you can create a new role for this purpose (recommended). You can also select an existing IAM role that already trusts the AWS Assurance service principal assurance.amazonaws.com. This role is separate from the AWSServiceRoleForAssurance service-linked role described in Service-linked roles for AWS Assurance.

After IAM Identity Center is configured for an environment, your users sign in through IAM Identity Center and are federated to the AWS Assurance off-console web application.

If your IAM Identity Center instance uses a customer managed key, the key policy must allow IAM Identity Center to use the key. Otherwise, CreateEnvironment and UpdateEnvironment fail with a validation error. For the key policy requirements, see Customer managed key on your IAM Identity Center instance.

Important

The customer managed key on your IAM Identity Center instance is different from the customer managed key for encrypting AWS Assurance evidence at rest. Configure each key separately. For the evidence encryption key, see Encryption at rest for AWS Assurance.

Service-linked roles for AWS Assurance

AWS Assurance uses a service-linked role named AWSServiceRoleForAssurance to discover and evaluate your resources. A service-linked role is a type of IAM role that AWS Assurance owns and that is linked directly to the service. The role uses the service principal assurance.amazonaws.com and the AWS managed policy AssuranceServiceRolePolicy. If an environment uses a customer managed key or an Amazon S3 connection, the role also receives an inline policy that grants access to that key or bucket. You can’t change the role’s trust policy or permissions.

AWS Assurance creates the role when you create an environment or accept an invitation. For an organization environment, AWS Assurance reaches each member account through that account’s own AWSServiceRoleForAssurance role. AWS Organizations trusted access creates these member-account roles when you enable trusted access for AWS Assurance. For the trusted access setup steps, see Enabling trusted access.

Stop evaluating member accounts

To stop AWS Assurance from evaluating the member accounts in your organization, disable trusted access in the management account. AWS Assurance then switches each organization environment to an environment that evaluates only the account that owns it. To evaluate the member accounts again, enable trusted access, and then update each environment to organization scope. To leave out only some accounts, narrow the environment to specific organizational units (OUs), or use account filters in your projects.

Deleting the service-linked role

You can delete the role in IAM only when all of the following are true in every Region where AWS Assurance is available:

  • The account owns no environments.

  • The account has no active connections to environments in other accounts.

  • If the account is in an organization, trusted access for AWS Assurance is disabled.

Otherwise, IAM reports that the role is still in use. Disabling trusted access doesn’t delete the role from member accounts. To remove it, delete the role in each member account. For general information about how AWS Assurance works with IAM, see Identity and access management for AWS Assurance.

Resource discovery with AWS Config

AWS Assurance uses an AWS Config service-linked recorder to discover the resources that it evaluates. AWS Assurance creates and manages this recorder for you when you create an environment. You don’t pay AWS Config charges for it. It runs alongside any AWS Config recorders that you already have, and AWS Assurance reads data only from its own service-linked recorder.

Note

After you create an environment, the first resource discovery can take up to an hour. Assessments that run before then might not include all of your resources.

For general information about AWS Config, see What Is AWS Config? in the AWS Config Developer Guide.

Region considerations

AWS Assurance is available in the following AWS Regions.

Region name Region Endpoint

US East (N. Virginia)

us-east-1

https://assurance.us-east-1.api.aws

US West (Oregon)

us-west-2

https://assurance.us-west-2.api.aws

Asia Pacific (Sydney)

ap-southeast-2

https://assurance.ap-southeast-2.api.aws

Asia Pacific (Tokyo)

ap-northeast-1

https://assurance.ap-northeast-1.api.aws

Europe (Ireland)

eu-west-1

https://assurance.eu-west-1.api.aws

Keep the following Region requirements in mind when you set up an environment:

  • If you configure IAM Identity Center for an environment, your IAM Identity Center instance must be in the same Region as the environment. For more information, see Signing in to the web application.

  • If you use a customer managed key to encrypt evidence at rest, the key must be in the same Region as the environment. For more information about encryption at rest, see Encryption at rest for AWS Assurance.

Service endpoints

Endpoint domain

AWS Assurance endpoints use the api.aws domain, not amazonaws.com. If you restrict outbound traffic, add the AWS Assurance endpoints in the preceding table to your firewall and proxy allowlists.

The endpoints are dual-stack (IPv4 and IPv6) and use HTTPS. Sign requests with AWS Signature Version 4, using the signing name assurance. To connect privately from your VPC, see AWS Assurance and interface VPC endpoints (AWS PrivateLink).