They added an option to CloudTrail to exclude certain types of management events from your CloudTrail. This is currently just to filter out KMS events from your CloudTrail, since KMS can generate a lot of events if you have application(s) that use KMS for frequent encryption operations.
It doesn't look like the resource currently supports configuring this option.
resource "aws_cloudtrail" "foo" {
name = "foo"
s3_bucket_name = "someCloudTrailBucket"
event_selector {
include_management_events = true
read_write_type = "All"
exclude_management_event_sources = ["kms.amazonaws.com"]
}
}
Bump 馃憤 this is needed and seems to be a critical miss that has negative cost impacts
This would be a great option to have. I raised this in #11710. Our current workaround is to use the ignore changes functionality on that Cloudtrail, but obviously this isn't ideal as a permanent solution.
Has there been an update on this? I noticed https://github.com/terraform-providers/terraform-provider-aws/pull/11680 was closed with what looked to be a solution but there's no link to where the PR was moved to.
Most helpful comment
Bump 馃憤 this is needed and seems to be a critical miss that has negative cost impacts