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
Sign in to the AWS Management Console and open the CloudFormation console at https://console.aws.amazon.com/cloudformation
. -
On the navigation bar at the top of the screen, choose the AWS Region where your stack is located.
-
On the Stacks page, choose the stack.
-
Choose the Change sets tab, and then choose the change set.
-
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:FAILEDwhen the control finds an issue. -
ValidationFailureMode:WARNorFAIL. -
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.