Terraform v0.12.6
Error Message:
Error: Error in function call
on lambda.tf line 6, in resource "aws_lambda_function" "lambda":
6: source_code_hash = "${base64sha256(file("../lambda.zip"))}"
Call to function "file" failed: contents of ../lambda.zip are not valid UTF-8;
use the filebase64 function to obtain the Base64 encoded contents or the other
file functions (e.g. filemd5, filesha256) to obtain file hashing results
instead.