terraform.aws-baseline-infra/examples/lambda-layers
2024-08-26 15:22:19 +08:00
..
.terraform/providers/registry.opentofu.org/hashicorp NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
lambda-layer1/python/lib/python3.12/site-packages NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
.terraform.lock.hcl NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
function1.zip NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
function.py NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
lambda-layer1.zip NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
main.tf NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
provider.tf NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
README.md NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00
terraform.tfstate.backup NEW: Example of putting python3 library in lambda layer 2024-08-26 15:20:10 +08:00

Prepare lambda-layer1 with the following command.

The path is hard-required by AWS. See https://docs.aws.amazon.com/lambda/latest/dg/packaging-layers.html

pip install requests -t python/lib/python3.12/site-packages/