Lines 215-216 in CLOUDTRAIL_ENABLED_V2.py contain this:
if 'LatestDeliveryError' in trail_status:
continue
That is my best guess as to where the NON_COMPLIANT result is coming from. I don't see LatestDeliveryError when I make a aws cloudtrail get-trail-status api call - it's not a property in the returned json (referenced above). I don't really understand the purpose of that logic to begin with. Why should LatestDeliveryError be in the status json? Shouldn't the expectation be that there isn't an error?
I'm not positive this is the reason for the failure, but it is the best I can tell from interpreting the code.
Can't seem to get multi-region-cloudtrail-enabled to pass no matter what I do. The trail is configured as:
It is also configured to include management events, S3 data events, Lambda data events.
Trail status (from
aws cloudtrail get-trail-status
):Lines 215-216 in
CLOUDTRAIL_ENABLED_V2.py
contain this:That is my best guess as to where the NON_COMPLIANT result is coming from. I don't see
LatestDeliveryError
when I make aaws cloudtrail get-trail-status
api call - it's not a property in the returned json (referenced above). I don't really understand the purpose of that logic to begin with. Why shouldLatestDeliveryError
be in the status json? Shouldn't the expectation be that there isn't an error?I'm not positive this is the reason for the failure, but it is the best I can tell from interpreting the code.