terraform-aws-modules/terraform-aws-lambda

Example using Docker to package Python Libraries in layer

rnikoopour opened this issue · 3 comments

Is your request related to a new offering from AWS?

No

Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.
N/A

Is your request related to a problem? Please describe.

I'm having trouble understanding how to create a lambda layer for python deps that is built in a docker container

Describe the solution you'd like.

An example to show how to build a layer in Docker that provides python libraries

Describe alternatives you've considered.

N/A

Additional context

I've tried to hobble together my own out of the examples, but I'm not having luck with the layer properly being built.

My goal is to bundle my installed requirements.txt in the lambda layer and use that layer in a function.

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

This issue was automatically closed because of stale in 10 days

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.