Skip to content

contents of ../lambda.zip are not valid UTF-8 #1

@codygreen

Description

@codygreen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions