aws iot describe-audit-finding
Gets information about a single audit finding. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To list details for an audit finding
The following describe-audit-finding example lists the details for the specified AWS IoT Device Defender audit finding. An audit can produce multiple findings. Use the list-audit-findings command to get a list of the findings from an audit to get the findingId.
aws iot describe-audit-finding --finding-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify--finding-idA unique identifier for a single audit finding.Its output
{
"finding": {
"findingId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"taskId": "873ed69c74a9ec8fa9b8e88e9abc4661",
"checkName": "IOT_POLICY_OVERLY_PERMISSIVE_CHECK",
"taskStartTime": 1576012045.745,
"findingTime": 1576012046.168,
"severity": "CRITICAL",
"nonCompliantResource": {
"resourceType": "IOT_POLICY",
"resourceIdentifier": {
"policyVersionIdentifier": {
"policyName": "smp-ggrass-group_Core-policy",
"policyVersionId": "1"
}
}
},
"reasonForNonCompliance": "Policy allows broad access to IoT data plane actions: [iot:Subscribe, iot:Connect, iot:GetThingShadow, iot:DeleteThingShadow, iot:UpdateThingShadow, iot:Publish].",
"reasonForNonComplianceCode": "ALLOWS_BROAD_ACCESS_TO_IOT_DATA_PLANE_ACTIONS"
}
}For more information, see Check Audit Results (Audit Commands) in the AWS IoT Developer Guide.
Options
--finding-idA unique identifier for a single audit finding.