View a markdown version of this page

Assessments - AWS Assurance

Assessments

An assessment evaluates your compliance readiness for one control, or for every control in a framework, within one project. You can start an assessment on demand. AWS Assurance also assesses each enabled framework automatically, based on its assessment mode: once a day in Daily mode, or when it detects a change in Continuous mode. On-demand and automatic assessments both use Assurance Processing Units (APUs). For more information, see Viewing AWS Assurance usage and charges.

Assessments run asynchronously: the API call that starts an assessment returns as soon as the request is accepted, not when the evaluation finishes. You then poll the assessment to observe its status, its outcome percentage, and, when the assessment spans more than one account, how many accounts have been evaluated so far.

You can scope an assessment to one control or to an entire framework. In an environment that spans more than one account — whether an organization environment or an environment with cross-account connections — an assessment evaluates every in-scope account. For the framework and control terms used here, see Core concepts.

Start an on-demand assessment

To start an assessment of a control in the web application, open the control, and then choose Run assessment.

To start an assessment with the API, call StartAssessment. The request requires environmentArn, framework, frameworkVersion, and project. To evaluate one control instead of the whole framework, include controlId. A control-level request returns an assessment ID right away, and a framework-level request doesn’t. For more information, see Control-level and framework-level assessments.

With the API, you can also include a context value. Use it to record information that helps the evaluation interpret your environment, such as a compensating control or an environment-specific caveat. If your environment has an AWS KMS customer managed key configured, AWS Assurance encrypts the context value with that key before it stores the value.

To add context in the web application, open the control. In the Additional context section, enter the context, and then choose Add context. AWS Assurance saves the context on the control and considers it in the next assessment of the control. In the chat agent, include the context when you ask the agent to assess a control.

AWS Assurance validates the request before it starts any evaluation work. The following conditions must all be true, and the request fails on the first one that is not:

  • The environment ARN is well-formed, and the environment exists.

  • The framework, framework version, and project are supplied and contain no reserved delimiter characters.

  • The project exists in the environment.

  • The framework is enabled for the project. Enable the framework before you assess it. For more information, see Enabling and disabling frameworks.

  • The control, if supplied, exists in the framework version and is not excluded from scope.

Automatic daily assessments

When you enable a framework in Daily mode, AWS Assurance provisions a daily assessment schedule for that framework. The daily assessment begins without any further action from you, and it is a framework-level assessment that evaluates every enabled control.

AWS Assurance assigns the time of the daily assessment automatically. You cannot view, choose, or change the daily schedule. When you disable the framework, AWS Assurance removes the daily schedule.

To have AWS Assurance assess when it detects a change instead of once a day, use Continuous mode. Continuous mode replaces the daily assessment. For more information, see Continuous assessments.

Continuous assessments

In Continuous mode, AWS Assurance assesses when it detects a change. There’s no daily assessment. You choose Continuous mode when you enable the framework, or you can change the mode later. For more information, see Choosing an assessment mode.

AWS Assurance triggers one assessment for each applicable control. What counts as a change depends on the control type:

  • For an Automated scan or Hybrid control, which AWS Assurance evaluates by scanning resources, a change to an in-scope resource triggers the assessment.

  • For any control, a change to the evidence linked to the control triggers the assessment. For example, linking or unlinking a control on a piece of evidence, or deleting evidence, is a change. A resource change does not trigger a Document control.

For more information about control types, see Control types.

When the same resource or control changes repeatedly in quick succession, AWS Assurance re-queues the triggers instead of running them at the same time. A short per-control cooldown of about 10 minutes applies, so AWS Assurance consolidates rapid changes to the same control. A change that is older than the control’s last completed assessment does not trigger a new assessment.

Control-level and framework-level assessments

The presence of a control ID in the StartAssessment request determines the scope of the assessment and what the response contains.

Scope Behavior Response contains an assessment ID

Control-level (you supply controlId)

AWS Assurance creates the assessment record before it returns, then dispatches the evaluation.

Yes

Framework-level (you omit controlId)

AWS Assurance accepts the request and dispatches one evaluation per enabled control in the framework version. Individual control assessments do not exist yet when the call returns.

No

Important

A framework-level StartAssessment response does not include an assessment ID. To track a framework-level run, use ListAssessments with filters for the project, framework, and framework version, and poll the individual control assessments as they appear.

Both control-level and framework-level assessments evaluate every in-scope account in the environment. A framework-level assessment dispatches each control across the same set of accounts, so it fans out across your organization’s member accounts or your cross-account connections in the same way a control-level assessment does. For how the set of accounts is resolved, see Account coverage.

Control-level assessments are idempotent while a run is active. If the most recent assessment for the same environment, project, framework, framework version, and control is already IN_PROGRESS, AWS Assurance returns that existing assessment instead of starting a second one. Two concurrent requests for the same scope converge on a single assessment.

Assessment statuses

Every assessment carries exactly one status. The following table lists the statuses that GetAssessment returns and the label that the web application shows for each. For how these statuses relate to a control’s readiness, see Control readiness status.

Status Web application label Meaning

SCHEDULED

Scheduled

The assessment is queued and has not started evaluating.

IN_PROGRESS

In Progress (Running in the assessment history)

The evaluation is running.

NEEDS_ATTENTION

Needs Attention

The evaluation finished with an outcome percentage below 100 and has open tasks for you to act on.

FINISHED

Finished

The evaluation finished with an outcome percentage of 100 and no open tasks.

NOT_APPLICABLE

N/A

The control does not apply. Either there are no in-scope resources for it, or you marked the control, or all of its requirements, as not applicable. The assessment carries no outcome percentage. To mark a control, see Marking controls as not applicable.

ERROR

Error

The run itself failed for a reason that is not solely yours to fix. Causes include a service-side or operational failure, an undetermined cause, or a multi-account run whose accounts failed for mixed reasons. This is not a compliance result.

USER_ERROR

User error

The run could not complete because of a reason that is yours to act on. This is most often a missing permission, a configuration problem, or AWS resources that AWS Assurance has not discovered yet. It might also be temporary throttling of the calls the run makes with your credentials. The assessment has no outcome percentage and no readiness result. AWS Assurance reports the specific reason in the assessment result. Read that reason, fix it, and start a new assessment.

How NOT_APPLICABLE, ERROR, and USER_ERROR assessments count toward compliance

NOT_APPLICABLE, ERROR, and USER_ERROR assessments have no outcome percentage, and none of them counts as a score of 0. They affect your framework’s compliance readiness score differently.

  • A control whose most recent completed assessment is NOT_APPLICABLE has nothing to evaluate, so AWS Assurance leaves it out of the framework’s score: it neither raises nor lowers the score. A control that you mark not applicable is left out in the same way.

  • When a run ends in USER_ERROR or ERROR, the control keeps the result of its most recent completed assessment, that is, the most recent one that ended FINISHED, NEEDS_ATTENTION, or NOT_APPLICABLE. If a control has never completed an assessment, including when you have never assessed it, the control counts as 0% until an assessment completes.

Your framework’s compliance readiness score is the average outcome percentage of its applicable controls, rounded to a whole number. For more information, see How scores are calculated.

GetControlStatus returns a control’s current status, which combines the control’s most recent assessment with any N/A decisions.

Control status Web application label Meaning

COMPLIANT

Finished

Every applicable requirement is met, and the outcome percentage is 100.

NEEDS_ATTENTION

Needs Attention

One or more requirements aren’t met, or are only partly met.

NOT_APPLICABLE

N/A

The control doesn’t apply to the project, or you marked it N/A.

NOT_ASSESSED

Not assessed

The control has no completed assessment that AWS Assurance can score yet.

Each entry in requirementStatuses has one of the following statuses. The status also sets how much the requirement counts toward the control’s outcome percentage.

Requirement status Meaning

met

The requirement is met. It earns full credit.

partial

The requirement is partly met. It earns half credit.

not_met

The requirement isn’t met. It earns no credit.

unable_to_assess

AWS Assurance couldn’t assess the requirement. It earns no credit.

not_applicable

The requirement doesn’t apply, or you marked it N/A. AWS Assurance leaves it out of the outcome percentage.

When AWS Assurance finds a gap, it creates remediation tasks for you to act on. For more information, see Remediation tasks.

Monitor an assessment in progress

Because evaluation is asynchronous, you observe progress by polling.

Call GetAssessment with an assessment ID to retrieve the status, the result, the outcome percentage, the creation timestamp, the last-updated timestamp, and, for a multi-account run, the account summary.

Call ListAssessments to retrieve assessments for an environment. The operation is paginated and supports filter criteria on the following fields:

  • project

  • framework

  • framework-version

  • control-id

  • assessment-id

  • status

Multiple values for the same field are combined with OR. Values across different fields are combined with AND. For example, you can request every assessment for one framework version whose status is IN_PROGRESS or NEEDS_ATTENTION.

You cannot filter on the outcome percentage or on the creation and last-updated timestamps. Retrieve the assessments you are interested in and evaluate those fields in your own code.

Each assessment shows a trigger mode that indicates what started it. The trigger mode is one of the following:

Trigger mode Meaning

Continuous

AWS Assurance triggered the assessment in response to a detected change while the framework was in continuous mode.

User Action

You started the assessment on demand.

Daily

The assessment is the daily scheduled assessment.

If an assessment cannot make progress, AWS Assurance detects the condition and ends the run rather than leaving it IN_PROGRESS indefinitely. If the cause is entirely yours to act on, such as a missing permission or a configuration problem, the run ends as USER_ERROR. Otherwise, it ends as ERROR. If AWS Assurance cannot resolve the set of accounts to evaluate, the run fails rather than silently evaluating only the owner account. A background process reconciles stalled evaluations and retries individual account evaluations that failed to start.

Account coverage

AWS Assurance resolves the set of accounts an assessment evaluates when the assessment starts, based on the environment:

  • For an organization environment, the assessment evaluates the member accounts in scope. For more information, see AWS Assurance and AWS Organizations.

  • For an environment with cross-account connections, the assessment evaluates the owner account plus every account with an active connection. For more information, see Cross-account assessments.

  • For a single-account environment, the assessment evaluates the owner account only.

Not every control is evaluated in every account. Automated scan and Hybrid controls, which declare resources to scan, are evaluated in each in-scope account. Document controls are evaluated once, in the account that owns the environment, so they usually finish sooner.

Multi-account assessment progress

When an environment spans more than one account, AWS Assurance evaluates each account separately and then aggregates the results. GetAssessment reports progress and results in the account summary. For how large organizations are evaluated in bounded batches and how progress is reported, see Assessments for large organizations.

The fields that are populated depend on the phase of the run.

While the assessment is running, the summary reports only:

  • totalAccounts — every account in the run, including accounts that turn out to be not applicable and accounts whose evaluation fails.

  • evaluatedAccounts — the number of account evaluations that have reached a terminal state, whether they completed or failed.

Use these two values to render progress, for example 3 of 10 accounts evaluated. The web application displays this count with a progress bar while the run is in flight.

After the assessment is finalized, the summary reports the durable result counts instead, with evaluatedAccounts equal to totalAccounts:

Field Meaning

passedCount

Accounts where the control is fully met, with an outcome percentage of 100.

failedCount

Accounts where the control scored 0.

partiallyPassedCount

Accounts where the control is partly met, with an outcome percentage above 0 and below 100.

notApplicableCount

Accounts where the control did not apply because there were no in-scope resources.

failedRunCount

Accounts whose evaluation failed for an operational reason. These accounts are counted as evaluated but are excluded from the score.

lowestScoringAccounts

The accounts with the lowest scores, in ascending order.

Note

failedCount and failedRunCount measure different things. failedCount counts accounts that were evaluated and scored 0%. failedRunCount counts accounts whose evaluation didn’t complete, and these accounts don’t affect the score. For how AWS Assurance calculates scores, see Concepts and terminology.

The aggregate score for the run is reported in the assessment’s outcome percentage. There is no separate account-level score field.

Do not derive progress from the result counts. The result counts exist only after the aggregate is finalized, and failedRunCount accounts are evaluated without contributing to the score, so the counts do not sum to a progress numerator. Use evaluatedAccounts and totalAccounts.

The account summary and every field within it are optional. Expect the summary to be absent in the following cases, and treat its absence as "progress is not available yet" rather than as an error:

  • The assessment covers a single account.

  • The multi-account fan-out has not been prepared yet.

Note

There is a short window after StartAssessment returns during which no counters are available. AWS Assurance accepts the request as soon as it is queued, and then resolves the accounts, routes the control, resolves environment Regions, and stages per-account inventory before progress reporting begins. If counters do not appear and the run does not progress, confirm that access to the in-scope accounts is configured — trusted access for an organization environment, or active connections for a cross-account environment.

Concurrency and pacing

AWS Assurance bounds how much evaluation work runs at once so that a large assessment does not overwhelm downstream capacity.

  • For a multi-account assessment, AWS Assurance evaluates accounts in parallel. The number of accounts that it evaluates at the same time scales with the size of the run, up to a limit.

  • For a framework-level assessment, AWS Assurance dispatches the per-control evaluations at a steady rate, rather than all at once.

These controls apply within a single assessment. There is no shared budget across separate assessments, so concurrent assessments add load independently. Stagger large assessments rather than starting several at once.

Durations depend on the number of accounts, the number of controls, and the availability of shared evaluation capacity, and they are not service commitments. For guidance on large organizations, see Assessments for large organizations.

Assessment outcomes over time in AWS Assurance

To retrieve the outcome percentage over time, call ListAssessmentOutcomes. The operation returns a series of points, and each point covers one interval of time. The request requires the environment ARN, the project, the framework, and the framework version.

By default, the series covers the framework for the whole project. The following optional parameters narrow the series:

controlId

Limits the series to one control.

resourceIdentifier

Limits the series to one resource. Specify the ARN of the resource. You can combine resourceIdentifier with controlId.

To get one outcome percentage for each control, for one resource, include resourceIdentifier and set aggregationLevel to CONTROL. By default, aggregationLevel is FRAMEWORK. You can include aggregationLevel only with resourceIdentifier and without controlId. If you include aggregationLevel in any other request, the request fails.

The window starts at startTime, which is included, and ends at endTime, which is not included. If you omit endTime, the window ends at the time of the request. If you omit startTime, the window starts 7 days before endTime. All times are in UTC. The period parameter sets the length of each interval, either ONE_HOUR or ONE_DAY, and the default is ONE_DAY. Each point is labeled with the start of its interval.

The statistic parameter sets how AWS Assurance combines the assessments in one interval into one outcome percentage.

  • LAST returns the outcome percentage of the newest assessment in the interval. LAST is the default.

  • MAX returns the highest outcome percentage in the interval.

  • MIN returns the lowest outcome percentage in the interval.

  • AVG returns the mean of the outcome percentages in the interval.

For AVG, each assessment in the interval counts once. As a result, AVG gives more weight to controls that AWS Assurance assessed more times in the interval.

The series includes only intervals that have an outcome percentage, so the series can have gaps. The series lists points in descending time order, newest first. To place a point on a timeline, use its timestamp, not its position in the list. An assessment can finish without an outcome percentage. For more information about the statuses that have no outcome percentage, see Assessment statuses.

Important

A page can contain fewer points than maxResults, or no points, and still include a nextToken. Request pages until the response has no nextToken.

To get the current outcome percentage instead of a series, omit both startTime and endTime. Use LAST, which is the default. The response then contains at most one point. Its timestamp is the time of the assessment that produced the outcome percentage, not the start of an interval. Use the timestamp to see how recent the outcome percentage is. This form is not available when aggregationLevel is CONTROL, and that request fails.

For more information about the rules of each parameter, see the AWS Assurance API Reference.