Closed javydekoning closed 2 years ago
Looks like there is already a PR open for this: https://github.com/aws/aws-cdk/pull/14366/commits/e707ec048ae93e51171f6c00f7736454e302e186
I like it! The commit you referenced doesn't seem to belong to a PR anymore, but we would totally accept this change.
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
Sending events to CloudWatch is not enabled when
cloudWatchLogGroup
orcloudWatchLogsRetention
property is passed in. You need explicitly setsendToCloudWatchLogs
totrue
. IfcloudWatchLogGroup
orcloudWatchLogsRetention
is passed in, this should be implicit.Reproduction Steps
What did you expect to happen?
I would expect events to turn up in the provided
cloudWatchLogGroup
. But need to manually turn onsendToCloudWatchLogs: true
to make this happen.Environment
N/A
Other
https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-cloudtrail/lib/cloudtrail.ts#L238 could be changed to:
alternatively we could do:
This is :bug: Bug Report