From c813a0f6c40547ee78e54264da09f04281047976 Mon Sep 17 00:00:00 2001 From: diodonfrost Date: Mon, 9 Nov 2020 20:33:47 +0100 Subject: [PATCH] fix(lambda): removing source_code_hash param When source_code_hash is defined in aws_lambda_function Terraform will check the hash that the zip which contains the code used by aws lambda. This value can changed depending of your operating system even if the code has not changed. This may be a problem when Terraform is executed on different operating systems. This commit remove the aws lambda param source_code_hash in the Terraform code. https://github.com/diodonfrost/terraform-aws-lambda-scheduler-stop-start/pull/11 --- main.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/main.tf b/main.tf index 0a833a33..06d605d4 100644 --- a/main.tf +++ b/main.tf @@ -244,7 +244,6 @@ resource "aws_lambda_function" "this" { function_name = var.name role = var.custom_iam_role_arn == null ? aws_iam_role.this[0].arn : var.custom_iam_role_arn handler = "scheduler.main.lambda_handler" - source_code_hash = data.archive_file.this.output_base64sha256 runtime = "python3.7" timeout = "600" kms_key_arn = var.kms_key_arn == null ? "" : var.kms_key_arn