Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for customizing log format #164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/flow_logs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = var.flow_log_definition.log_format
dynamic "destination_options" {
for_each = var.flow_log_definition.log_destination_type == "s3" ? [true] : []

Expand Down
10 changes: 5 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ variable "vpc_flow_logs" {
description = "Whether or not to create VPC flow logs and which type. Options: \"cloudwatch\", \"s3\", \"none\". By default creates flow logs to `cloudwatch`. Variable overrides null value types for some keys, defined in defaults.tf."

type = object({
name_override = optional(string, "")
log_destination = optional(string)
iam_role_arn = optional(string)
kms_key_id = optional(string)

name_override = optional(string, "")
log_destination = optional(string)
iam_role_arn = optional(string)
kms_key_id = optional(string)
log_format = optional(string)
log_destination_type = string
retention_in_days = optional(number)
tags = optional(map(string))
Expand Down