Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

zip: true and layer: true puts requirements zip in both layer and lambda #661

@m-radzikowski

Description

@m-radzikowski

With configuration:

custom:
  pythonRequirements:
    dockerizePip: non-linux
    zip: true
    layer: true

there are two output zip files - one for Lambda, other for Layer.

The plugin seems to first create ./.requirements.zip file with all the requirements, then put the content into ./.serverless/pythonRequirements.zip. Then it generates zip for Lambda function code taking everything from the stack directory and putting it into ./.serverless/fn-name.zip. It includes the .requirements.zip file.

Related: #365

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