From fbee3d4c7865d7177a8247b4089a735726d3c2b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Viana?= Date: Tue, 18 May 2021 20:37:03 -0300 Subject: [PATCH] firehose log group --- waf/policy/submodule/firehose.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/waf/policy/submodule/firehose.tf b/waf/policy/submodule/firehose.tf index 0fc8e1d..66d1115 100644 --- a/waf/policy/submodule/firehose.tf +++ b/waf/policy/submodule/firehose.tf @@ -161,4 +161,13 @@ resource "aws_kinesis_firehose_delivery_stream" "firehose" { log_stream_name = "S3Delivery" } } +} + +resource "aws_cloudwatch_log_group" "log" { + name = "/aws/kinesisfirehose/aws-waf-logs-fms-${local.name}" +} + +resource "aws_cloudwatch_log_stream" "stream" { + name = "S3Delivery" + log_group_name = aws_cloudwatch_log_group.log.name } \ No newline at end of file