terraform-aws-modules / terraform-aws-lambda

Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws
Apache License 2.0
886 stars 656 forks source link

Example using Docker to package Python Libraries in layer #491

Closed rnikoopour closed 9 months ago

rnikoopour commented 11 months ago

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.

github-actions[bot] commented 10 months ago

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

github-actions[bot] commented 9 months ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 8 months ago

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.