Skip to content

Commit

Permalink
fix(lambda): removing source_code_hash param
Browse files Browse the repository at this point in the history
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.

#11
  • Loading branch information
diodonfrost committed Nov 9, 2020
1 parent 3aee242 commit c813a0f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c813a0f

Please sign in to comment.