From 19751c4ff3dd1a095937fd1654e738d4699ec87f Mon Sep 17 00:00:00 2001 From: nnsense <2553412+nnsense@users.noreply.github.com> Date: Thu, 22 Aug 2024 08:21:07 +0000 Subject: [PATCH 1/2] Change cloudwatch submodule to pass context --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index b7b9990..7cf59e4 100644 --- a/main.tf +++ b/main.tf @@ -15,7 +15,7 @@ module "cloudwatch_log_group" { kms_key_arn = var.cloudwatch_logs_kms_key_arn retention_in_days = var.cloudwatch_logs_retention_in_days name = "/aws/lambda/${var.function_name}" - tags = module.this.tags + context = module.this.context } resource "aws_lambda_function" "this" { From 84f05c20a26c7ab99e361620f1487b569208dd67 Mon Sep 17 00:00:00 2001 From: nnsense <2553412+nnsense@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:07:46 +0000 Subject: [PATCH 2/2] Removing enabled being part of context already --- main.tf | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.tf b/main.tf index 7cf59e4..057b495 100644 --- a/main.tf +++ b/main.tf @@ -9,8 +9,6 @@ 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