Add group 3 network imports

This commit is contained in:
2026-11-14 18:13:08 +09:00
parent 5a223937cf
commit 4433535637
11 changed files with 964 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
resource "aws_flow_log" "s3" {
region = var.region
vpc_id = local.vpc.id
traffic_type = var.flow_logs.s3.traffic_type
log_destination_type = "s3"
log_destination = var.flow_logs.s3.destination_arn
max_aggregation_interval = var.flow_logs.s3.max_aggregation_interval
tags = var.flow_logs.s3.tags
destination_options {
file_format = "parquet"
hive_compatible_partitions = false
per_hour_partition = true
}
}
resource "aws_flow_log" "cloudwatch" {
region = var.region
vpc_id = local.vpc.id
traffic_type = var.flow_logs.cloudwatch.traffic_type
log_destination_type = "cloud-watch-logs"
log_destination = var.flow_logs.cloudwatch.log_group_arn
iam_role_arn = var.flow_logs.cloudwatch.iam_role_arn
max_aggregation_interval = var.flow_logs.cloudwatch.max_aggregation_interval
tags = var.flow_logs.cloudwatch.tags
}