You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cfn_nag is enforcing rules for CloudWatchLog for retention period to be specified in days and supply a KMS key for encryption. The construct should add rules to suppress the following:
As a workaround, I am adding the following code to suppress cfn_nag.
(firehoseToS3.node.findChild('firehose-log-group').node.defaultChildasCfnLogGroup).cfnOptions.metadata={cfn_nag: {rules_to_suppress: [{id: 'W84',reason: 'Log group data is always encrypted in CloudWatch Logs using AWS Managed KMS Key. For customers wanting to us CMK for \ CloudWatchLogs should customize the solution further to add encryption options'},{id: 'W86',reason: 'Log Groups are set to \'Never Expire\'. Customers should customize the retention policy based on their organization\'s \ retention policies'}]}}
cfn_nag is enforcing rules for CloudWatchLog for retention period to be specified in days and supply a KMS key for encryption. The construct should add rules to suppress the following:
Reproduction Steps
Create a construct using
Error Log
| WARN W84
|
| Resources: []
| Line Numbers: []
|
| CloudWatchLogs LogGroup should specify a KMS Key Id to encrypt the log data
| WARN W86
|
| Resources: []
| Line Numbers: []
|
| CloudWatchLogs LogGroup should specify RetentionInDays to expire the log data
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: