Skip to content

Commit

Permalink
update max_aggregation_interval to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 2, 2022
1 parent cb156f9 commit 476ef7a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions flowlogs-transit-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ locals {
}

resource "aws_flow_log" "flowlog_s3" {
log_destination = format("%v/%v/%v/", var.flowlog_bucket_arn, "tgw", var.label)
log_destination_type = "s3"
iam_role_arn = var.flowlog_role_arn
traffic_type = "ALL"
transit_gateway_id = var.transit_gateway_id
log_destination = format("%v/%v/%v/", var.flowlog_bucket_arn, "tgw", var.label)
log_destination_type = "s3"
iam_role_arn = var.flowlog_role_arn
traffic_type = "ALL"
transit_gateway_id = var.transit_gateway_id
max_aggregation_interval = 60

tags = merge(
local.base_tags,
Expand All @@ -79,10 +80,11 @@ resource "aws_cloudwatch_log_group" "flowlog" {
}

resource "aws_flow_log" "flowlog_cloudwatch" {
log_destination = aws_cloudwatch_log_group.flowlog.arn
iam_role_arn = var.flowlog_role_arn
traffic_type = "ALL"
transit_gateway_id = var.transit_gateway_id
log_destination = aws_cloudwatch_log_group.flowlog.arn
iam_role_arn = var.flowlog_role_arn
traffic_type = "ALL"
transit_gateway_id = var.transit_gateway_id
max_aggregation_interval = 60

tags = merge(
local.base_tags,
Expand Down

0 comments on commit 476ef7a

Please sign in to comment.