Skip to content

run.sh is not executable if I create zip package in Windows. #611

@lucidfrontier45

Description

@lucidfrontier45

I followed https://github.com/awslabs/aws-lambda-web-adapter?tab=readme-ov-file#lambda-functions-packaged-as-zip-package-for-aws-managed-runtimes to create a zip package in Windows.

When I deploy it I got the following error

/opt/bootstrap: line 3: /var/task/run.sh: cannot execute: required file not found

However if I create the zip package in Linux everything is fine.

I guess it is related to file's execute permission.
Is there any way to create a run.sh that is executable in Lambda runtime without any permission error?

I don't think it is directly related but just to be sure I also share my build script.
I used exactly the same build script in both Windows and Linux.
The script does cross build Python deployment package.
In both Windows and Linux, host is x86_64 and I built aarch64 package.
https://github.com/lucidfrontier45/python-uv-template/blob/main/awslambda/build_package.nu

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