Description
The contribute Lambda function requires external Python dependencies (PyGithub, requests) that need to be packaged as a Lambda layer.
Tasks
Create Lambda Layer
Update CDK Stack
Alternative: Bundle Dependencies
Acceptance Criteria
- Lambda function can import PyGithub and requests
- No import errors at runtime
- Layer version tracked in CDK
Related Files
interactive/lambda/contribute.py
interactive/infra/lib/interactive-stack.ts
Dependencies
Description
The contribute Lambda function requires external Python dependencies (PyGithub, requests) that need to be packaged as a Lambda layer.
Tasks
Create Lambda Layer
docker run --rm -v $(pwd):/var/task \ public.ecr.aws/sam/build-python3.11 \ pip install -r requirements.txt -t python/Update CDK Stack
Alternative: Bundle Dependencies
pip install -tAcceptance Criteria
Related Files
interactive/lambda/contribute.pyinteractive/infra/lib/interactive-stack.tsDependencies