View a markdown version of this page

View findings from controls - CloudFormation

View findings from controls

Findings appear in the following places:

  • The Validation results tab on the CloudFormation console.

  • The output of DescribeEvents.

  • The output of cdk deploy.

Change set status

When a change set has findings, its status reason reports them. With WARN findings, CloudFormation creates the change set, and you review the findings before you execute it. With FAIL findings, the change set fails.

View findings (console)

For a stack operation, open the stack's Events tab and choose the operation ID. The Operation view page opens on the Validation results tab.

To view findings for a change set
  1. Sign in to the AWS Management Console and open the CloudFormation console at https://console.aws.amazon.com/cloudformation.

  2. On the navigation bar at the top of the screen, choose the AWS Region where your stack is located.

  3. On the Stacks page, choose the stack.

  4. Choose the Change sets tab, and then choose the change set.

  5. Choose the Validation results tab to view the findings.

View findings (AWS CLI)

Use the describe-events command with the change set name or ARN.

aws cloudformation describe-events \ --change-set-name "arn:aws:cloudformation:us-east-1:123456789012:changeSet/MyChangeSet/94498df5-1afb-43b1-9869-9f82b2d877ac"

Each finding includes the following fields:

  • ValidationName: The type name of the control.

  • ValidationStatus: FAILED when the control finds an issue.

  • ValidationFailureMode: WARN or FAIL.

  • ValidationStatusReason: The resource and the issue.

The following example output shows a finding.

{ "OperationEvents":[ { "ValidationName":"AWS::Controls::DynamoDBTableInUseRemoved", "ValidationFailureMode":"WARN", "ValidationStatus":"FAILED", "ValidationStatusReason":"Removing DynamoDB table OrdersTable deletes the table and its data. The table consumed read or write capacity in the last 24 hours." } ] }

View findings (AWS CDK)

Findings appear in the output of cdk deploy.