https://github.com/pdal/lambda
Docker containers for AWS Lambda
https://github.com/pdal/lambda
Last synced: 4 months ago
JSON representation
Docker containers for AWS Lambda
- Host: GitHub
- URL: https://github.com/pdal/lambda
- Owner: PDAL
- License: apache-2.0
- Created: 2019-01-10T15:48:05.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-07-21T23:14:24.000Z (12 months ago)
- Last Synced: 2025-07-22T01:28:12.586Z (12 months ago)
- Language: HCL
- Homepage:
- Size: 75.5 MB
- Stars: 28
- Watchers: 7
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
================================================================================
PDAL Lambda Container for AWS
================================================================================
Instructions
--------------------------------------------------------------------------------
Note that this set of scripts has only been run on an M1/M2 Mac. Multi-arch
containers are often quite slow.
0. Set your AWS variables into your environment:
::
AWS_ACCESS_KEY_ID=something
AWS_SECRET_ACCESS_KEY=somethingelse
AWS_DEFAULT_REGION=us-east-1
1. (optional) Edit your variables
::
cat terraform/pdal.tfvars
environment_name="pdal-lambda"
arch="arm64"
2. Initialize your Terraform Environment
::
cd terraform
terraform init
terraform validate
terraform apply -var-file pdal.tfvars
The Terraform configuration will create some resources including an ECR
repository to store the image, a role for execution of the lambda,
and the lambda itself. Adjust your configuration as needed in `./terraform/resources`
3. Test locally
Fire up the Lambda Docker container in one terminal:
::
cd docker
./run-local.sh /var/task/python-entry.sh pdal_lambda.ecr.info.handler
In another terminal, issue the test. Note that it currently defaults to running
on port 9000. Adjust the script as necessary.
::
cd docker
./test-local.sh info-event.json
4. Test remotely
::
cd docker
./test-remote.sh info-event.json
cat response.json