Skip to content

[Documentation] Requirements for building a layer should be in a separate file #350

@dgard1981

Description

@dgard1981

I've just added a layer for aws-xray-sdk and jsonpickle as described in the README for the blank Python project.

cd function
pip3 install --target ../package/python -r requirements.txt

However, I was finding that the function package still included the required modules as listed in requirements.txt. It looks as though that rather than building the layer from /functoin/requirements.txt a separate requirements file should be created, and that modules that will be in the layer should be removed from /functoin/requirements.txt.

Can the documentation be amended to make this clear, as the existing documentation doesn't seem to acknowledge that at all.

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