resource "aws_flow_log" "CW-flowlogs" {
  iam_role_arn             = "arn:aws:iam::662302927201:role/flowlogsRole"
  log_destination_type     = "cloud-watch-logs"
  log_destination          = "arn:aws:logs:eu-central-1:662302927201:log-group:cloudops-ROUGH-CUTS-D-flow-logs"
  max_aggregation_interval = 600
  tags = { "Name" = "cloudops-ROUGH-CUTS-D-flow-logs" }
  traffic_type             = "ALL"
  vpc_id                   = aws_vpc.ROUGH-CUTS-D.id
}

resource "aws_flow_log" "S3-flowlogs" {
  log_destination          = "arn:aws:s3:::orch-switchboard-dev-rough-cuts-d-vpc-flow-logs"
  log_destination_type     = "s3"
  max_aggregation_interval = 600
  tags = { "Name" = "S3-ROUGH-CUTS-D-flow-logs" }
  traffic_type             = "ALL"
  vpc_id                   = aws_vpc.ROUGH-CUTS-D.id
  destination_options {
    file_format                = "plain-text"
    hive_compatible_partitions = false
    per_hour_partition         = false
  }
}