Skip to content

Commit 0d85859

Browse files
Gowiemaknysh
andauthored
fix: addresses issues with lambda cloudwatch log group (#39)
Co-authored-by: Andriy Knysh <[email protected]>
1 parent 394e309 commit 0d85859

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ module "cloudwatch_log_group" {
99
source = "cloudposse/cloudwatch-logs/aws"
1010
version = "0.6.6"
1111

12+
enabled = module.this.enabled
13+
1214
iam_role_enabled = false
1315
kms_key_arn = var.cloudwatch_logs_kms_key_arn
1416
retention_in_days = var.cloudwatch_logs_retention_in_days
15-
attributes = ["lambda", var.function_name]
16-
context = module.this.context
17+
name = "/aws/lambda/${var.function_name}"
18+
tags = module.this.tags
1719
}
1820

1921
resource "aws_lambda_function" "this" {

0 commit comments

Comments
 (0)