From 04d7f93539beef671f6f566acc1041c3b45dc61f Mon Sep 17 00:00:00 2001 From: Stefan Freitag Date: Mon, 23 Oct 2023 19:19:52 +0200 Subject: [PATCH] fix: Add source code hash to AWS Lambda function The commit adds the `source_code_hash` attribute to the `aws_lambda_function` resource in `main.tf`. This attribute is set to the output of `data.archive_file.status_checker_code.output_base64sha256`, ensuring that the Lambda function uses the correct source code. --- main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/main.tf b/main.tf index 243eb24..3d285fa 100644 --- a/main.tf +++ b/main.tf @@ -102,6 +102,7 @@ resource "aws_lambda_function" "msk_health_lambda" { runtime = "python3.11" reserved_concurrent_executions = 1 memory_size = 128 + source_code_hash = data.archive_file.status_checker_code.output_base64sha256 timeout = 60 tags = var.tags tracing_config {