From c0f7287da5c5703a455418be2483800b8298f960 Mon Sep 17 00:00:00 2001 From: Nitin Jain Date: Mon, 19 Aug 2024 15:04:16 +0200 Subject: [PATCH] Issue-43:Adding Cloudwatch LogGroup for Transform Lamdba --- main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.tf b/main.tf index b698e8a..4fa769b 100644 --- a/main.tf +++ b/main.tf @@ -325,6 +325,15 @@ resource "aws_lambda_function" "firehose_lambda_transform" { tags = var.tags } +# Cloudwatch logging group for Transform Lambda + +resource "aws_cloudwatch_log_group" "firehose_lambda_transform" { + name = "/aws/lambda/${var.lambda_function_name}" + retention_in_days = var.cloudwatch_log_retention + kms_key_id = var.cloudwach_log_group_kms_key_id + tags = var.tags +} + # kinesis-firehose-cloudwatch-logs-processor.js was taken by copy/paste from the AWS UI. It is predefined blueprint # code supplied to AWS by Splunk. data "archive_file" "lambda_function" {