From a34e3b2b8d768f3d239a0b27776fa2dd19e9a9a6 Mon Sep 17 00:00:00 2001 From: qmugnier <47365202+qmugnier@users.noreply.github.com> Date: Mon, 24 Jul 2023 15:52:26 +0900 Subject: [PATCH] Update main.tf --- modules/flow_logs/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/flow_logs/main.tf b/modules/flow_logs/main.tf index 02e3cfa..c030110 100644 --- a/modules/flow_logs/main.tf +++ b/modules/flow_logs/main.tf @@ -40,7 +40,7 @@ resource "aws_flow_log" "main" { log_destination_type = var.flow_log_definition.log_destination_type traffic_type = var.flow_log_definition.traffic_type vpc_id = var.vpc_id - + log_format = "$${account-id} $${action} $${az-id} $${bytes} $${dstaddr} $${dstport} $${end} $${flow-direction} $${instance-id} $${interface-id} $${log-status} $${packets} $${pkt-dst-aws-service} $${pkt-dstaddr} $${pkt-src-aws-service} $${pkt-srcaddr} $${protocol} $${region} $${srcaddr} $${srcport} $${start} $${sublocation-id} $${sublocation-type} $${subnet-id} $${tcp-flags} $${traffic-path} $${type} $${version} $${vpc-id}" dynamic "destination_options" { for_each = var.flow_log_definition.log_destination_type == "s3" ? [true] : []