Skip to content

Commit

Permalink
Issue-43:Adding Cloudwatch LogGroup for Transform Lamdba (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinjain999 authored Oct 30, 2024
1 parent 26c9068 commit 947baa6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,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" {

Check failure on line 332 in main.tf

View workflow job for this annotation

GitHub Actions / scan

CKV_AWS_338: "Ensure CloudWatch log groups retains logs for at least 1 year"
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" {
Expand Down

0 comments on commit 947baa6

Please sign in to comment.