terraform.aws-baseline-infra/examples/lambda-layers
2024-08-26 15:27:06 +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 DOC: updated readme for examples/lambda-layers 2024-08-26 15:27:06 +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/

Requirements

Name Version
terraform >= 1.3.0
aws >= 4.40

Providers

Name Version
archive 2.5.0
aws 5.64.0

Modules

No modules.

Resources

Name Type
aws_iam_role.lambda-role1 resource
aws_lambda_function.myFunction resource
aws_lambda_layer_version.libraries resource
archive_file.function1 data source
archive_file.layer1 data source

Inputs

No inputs.

Outputs

No outputs.


Authorship

This module was developed by UPDATE_THIS.