diff --git a/main.tf b/main.tf index 2152e78..e97f8ab 100644 --- a/main.tf +++ b/main.tf @@ -24,9 +24,9 @@ resource "aws_cloudtrail" "default" { dynamic "event_selector" { for_each = var.event_selector content { - include_management_events = lookup(event_selector.value, "include_management_events", null) - read_write_type = lookup(event_selector.value, "read_write_type", null) - + include_management_events = lookup(event_selector.value, "include_management_events", null) + read_write_type = lookup(event_selector.value, "read_write_type", null) + exclude_management_event_sources = lookup(event_selector.value, "exclude_management_event_sources", null) dynamic "data_resource" { for_each = lookup(event_selector.value, "data_resource", []) content { diff --git a/variables.tf b/variables.tf index f3e5a04..fb5d75e 100644 --- a/variables.tf +++ b/variables.tf @@ -50,9 +50,9 @@ variable "insight_selector" { variable "event_selector" { type = list(object({ - include_management_events = bool - read_write_type = string - + include_management_events = bool + read_write_type = string + exclude_management_event_sources = list(string) data_resource = list(object({ type = string values = list(string)