Klayers
serverless-etl-cdk
Klayers | serverless-etl-cdk | |
---|---|---|
4 | 1 | |
1,969 | 2 | |
- | - | |
8.0 | 0.0 | |
5 days ago | almost 2 years ago | |
Python | Python | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Klayers
-
Lambda with Python libraries
Use public layers maintained by others. For example Klayers which are produced with CI in GitHub Actions. This way you don't have any layers lying around in your Lambda UI. You can point to new layer versions whenever you wish. You can interact with the layer data via an API : https://github.com/keithrozario/Klayers/#api
-
AWS Serverless Menu - Small to Big
If I want to do something more data heavy or complex, I'll sometimes instead go for Python. Having a mixture of languages is one of the big advantages of micro services. Packaging dependencies is a bit tricker for Python, for simple packages I'll usually include in my build script something to copy the relevant directories from my venv's site-packages. However one neat alternative is to use a publicly available precompiled lambda layer from Klayers. These slot neatly in one line of code into my terraform config and enable me to use popular Python packages like numpy and pandas without troubling myself about C extensions, build environment or having to mess with Amazon Linux.
-
Serverless ETL using AWS Lambda, Pandas, PostgreSQL, AWS CDK
Before anything, Huge shoutout to Keith Rozario for providing us with this awesome Repo. where he defined layers for lambda functions to add libraries that doesn't exist by default in the lambda runtime without you having to create them yourself. I used his repo to add the requests, pandas and psycopg2 libraries to the project.
-
Can a lambda use a layer which is stored in S3
I like to use this guy’s layers as an arn: https://github.com/keithrozario/Klayers
serverless-etl-cdk
-
Serverless ETL using AWS Lambda, Pandas, PostgreSQL, AWS CDK
Modern cloud infrastructure is being pushed to entirely new limits and possibilities and its only up to your imagination how you will use it. I have enjoyed a lot and learned so much while creating this. all the code for this article can be found in this Repo
What are some alternatives?
mangum - AWS Lambda support for ASGI applications
configure-aws-credentials - Configure AWS credential environment variables for use in other GitHub Actions.
python-lambdarest - Flask like web framework for AWS Lambda
covid-19-data - A repository of data on coronavirus cases and deaths in the U.S.
Zappa - Serverless Python
AWS Data Wrangler - pandas on AWS - Easy integration with Athena, Glue, Redshift, Timestream, Neptune, OpenSearch, QuickSight, Chime, CloudWatchLogs, DynamoDB, EMR, SecretManager, PostgreSQL, MySQL, SQLServer and S3 (Parquet, CSV, JSON and EXCEL).
terraform-ecs-fargate-scheduled-task - A Terraform template used for provisioning scheduled tasks on AWS ECS Fargate
terraform-aws-ecs-fargate-service - AWS ECS Fargate Service Terraform Module