diff --git a/lambda.tf b/lambda.tf index f63e6cd..3c9897e 100644 --- a/lambda.tf +++ b/lambda.tf @@ -4,7 +4,7 @@ resource "aws_lambda_function" "lambda_function" { description = "Creates report of AWS Services in Organization accounts and saves to Excel spreadsheet in S3 bucket" role = aws_iam_role.iam_role.arn handler = "grace-inventory-lambda" - source_code_hash = filesha256(var.source_file) + source_code_hash = filebase64sha256(var.source_file) kms_key_arn = aws_kms_key.kms_key.arn runtime = "go1.x" timeout = 900