From 34108a376693dea41ba5a10dcfa992bc83cf320d Mon Sep 17 00:00:00 2001 From: Matt James Date: Wed, 26 Apr 2023 08:46:00 +0800 Subject: [PATCH 1/2] add exclude_management_event_sources --- main.tf | 2 +- variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 2152e78..a9f07b6 100644 --- a/main.tf +++ b/main.tf @@ -26,7 +26,7 @@ resource "aws_cloudtrail" "default" { content { 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..b71dd9d 100644 --- a/variables.tf +++ b/variables.tf @@ -52,7 +52,7 @@ variable "event_selector" { type = list(object({ include_management_events = bool read_write_type = string - + exclude_management_event_sources = list(string) data_resource = list(object({ type = string values = list(string) From d63cbc8f7b56ec251e5faf0b0d5e2e61d4c40574 Mon Sep 17 00:00:00 2001 From: Matt James Date: Mon, 27 Nov 2023 09:51:53 +0800 Subject: [PATCH 2/2] Fix formatting --- main.tf | 4 ++-- variables.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index a9f07b6..e97f8ab 100644 --- a/main.tf +++ b/main.tf @@ -24,8 +24,8 @@ 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", []) diff --git a/variables.tf b/variables.tf index b71dd9d..fb5d75e 100644 --- a/variables.tf +++ b/variables.tf @@ -50,8 +50,8 @@ 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