aws-quickstart / quickstart-compliance-common

AWS Quick Start Team
Apache License 2.0
67 stars 56 forks source link

Fixing CloudTrail Validation Function #16

Closed julien-chidiack closed 4 years ago

julien-chidiack commented 6 years ago

CloudTrail Validation Function show no data when launched into AWS, with following error:

" SyntaxError: Unexpected token u at Object.parse (native) at exports.handler (/var/task/index.js:24:31) " Can be fixed by changing ComplianceResourceTypes (line 269, rConfigRuleForCloudTrail) to AWS::CloudTrail::Trail (instead of EC2 Instance), and by removing the parse "var ruleParameters = JSON.parse(event.ruleParameters);" (line 230) and ruleParameters Objects (line 212 & line 234).

troy-ameigh commented 4 years ago

This is an old request.