Skip to content

Commit

Permalink
fix: addresses issues with lambda cloudwatch log group (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Andriy Knysh <[email protected]>
  • Loading branch information
Gowiem and aknysh authored May 30, 2023
1 parent 394e309 commit 0d85859
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ module "cloudwatch_log_group" {
source = "cloudposse/cloudwatch-logs/aws"
version = "0.6.6"

enabled = module.this.enabled

iam_role_enabled = false
kms_key_arn = var.cloudwatch_logs_kms_key_arn
retention_in_days = var.cloudwatch_logs_retention_in_days
attributes = ["lambda", var.function_name]
context = module.this.context
name = "/aws/lambda/${var.function_name}"
tags = module.this.tags
}

resource "aws_lambda_function" "this" {
Expand Down

0 comments on commit 0d85859

Please sign in to comment.