feat: use new module to build python package archive
This commit is contained in:
+16
-19
@@ -1,42 +1,39 @@
|
||||
<!-- This readme file is generated with terraform-docs -->
|
||||
# Notice
|
||||
This layer is obsolete. A replacement will be pushed when ready.
|
||||
# lambda-layers
|
||||
|
||||
Download python packages and create lambda layer
|
||||
|
||||
## 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
|
||||
|
||||
```bash
|
||||
pip install requests -t python/lib/python3.12/site-packages/
|
||||
```
|
||||
## Notes
|
||||
Packages need to be placed under a python/ subdirectory.
|
||||
See https://docs.aws.amazon.com/lambda/latest/dg/packaging-layers.html
|
||||
|
||||
## Requirements
|
||||
|
||||
| Name | Version |
|
||||
|------|---------|
|
||||
| terraform | >= 1.3.0 |
|
||||
| aws | >= 4.40 |
|
||||
| terraform | >= 1.1.0 |
|
||||
| aws | >= 6.0 |
|
||||
|
||||
## Providers
|
||||
|
||||
| Name | Version |
|
||||
|------|---------|
|
||||
| archive | 2.5.0 |
|
||||
| aws | 5.64.0 |
|
||||
| aws | 5.100.0 |
|
||||
| random | 3.8.1 |
|
||||
|
||||
## Modules
|
||||
|
||||
No modules.
|
||||
| Name | Source | Version |
|
||||
|------|--------|---------|
|
||||
| lambda\_archive | ../modules/compute/LambdaZipBuilder | n/a |
|
||||
| s3 | ../modules/storage/s3_bucket_2023 | n/a |
|
||||
|
||||
## Resources
|
||||
|
||||
| Name | Type |
|
||||
|------|------|
|
||||
| [aws_iam_role.lambda-role1](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
|
||||
| [aws_lambda_function.myFunction](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource |
|
||||
| [aws_lambda_layer_version.libraries](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_layer_version) | resource |
|
||||
| [archive_file.function1](https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file) | data source |
|
||||
| [archive_file.layer1](https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file) | data source |
|
||||
| [aws_lambda_layer_version.pandas](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_layer_version) | resource |
|
||||
| [random_uuid.this](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/uuid) | resource |
|
||||
|
||||
## Inputs
|
||||
|
||||
@@ -48,4 +45,4 @@ No outputs.
|
||||
|
||||
---
|
||||
## Authorship
|
||||
This module was developed by xpk.
|
||||
This module was developed by xpk.
|
||||
Reference in New Issue
Block a user