From 04a272ce207caeb96b242b7baa22780ae3224562 Mon Sep 17 00:00:00 2001 From: mpajuelofernandez Date: Wed, 18 Sep 2024 12:23:00 +0200 Subject: [PATCH 1/2] Fix for s3 lambda notification --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 72e8b7d7..882f4e41 100644 --- a/main.tf +++ b/main.tf @@ -589,7 +589,7 @@ resource "aws_s3_bucket_notification" "bucket_notification" { for_each = var.event_notification_details.lambda_list content { lambda_function_arn = lambda_function.value.arn - events = lambda.value.events + events = lambda_function.value.events filter_prefix = lambda_function.value.filter_prefix filter_suffix = lambda_function.value.filter_suffix } From 4b0e8d3bf345860de4417d60bc641eb6fbb9609f Mon Sep 17 00:00:00 2001 From: mpajuelofernandez Date: Wed, 18 Sep 2024 16:35:57 +0200 Subject: [PATCH 2/2] fix another typo --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 882f4e41..83993ff4 100644 --- a/main.tf +++ b/main.tf @@ -588,7 +588,7 @@ resource "aws_s3_bucket_notification" "bucket_notification" { dynamic "lambda_function" { for_each = var.event_notification_details.lambda_list content { - lambda_function_arn = lambda_function.value.arn + lambda_function_arn = lambda_function.value.lambda_function_arn events = lambda_function.value.events filter_prefix = lambda_function.value.filter_prefix filter_suffix = lambda_function.value.filter_suffix