developmentseed / developmentseed/ingest-framework

Lean on CDK for Lambda Layer packaging

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

At time of writing, the library manually builds layers via calls to the subprocess:

https://github.com/edkeeble/ingest-framework/blob/5d7c636640778fbe2d19173ad49bf5f3bc1e22f6/ingest/stack/pipeline_stack.py#L94-L122

My understanding is this is slightly undesirable because the environment on which you package the layer (ie you're computer) may not match the Lambda runtime environment. As such, CDK includes tooling to build Layers inside of a Docker image matching the Lambda runtime. https://docs.aws.amazon.com/cdk/api/v2/docs/aws-lambda-python-alpha-readme.html#python-layer

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.