Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Lambda Layers FTW!
Search
Francesco Lerro
February 12, 2019
Technology
1
970
Lambda Layers FTW!
A technical deep dive into AWS Lambda Layers!
Francesco Lerro
February 12, 2019
Tweet
Share
More Decks by Francesco Lerro
See All by Francesco Lerro
Playing with serverless building blocks
flerro
0
8
Orchestration VS Choreography in Serverless
flerro
0
200
Serverless architecture patterns
flerro
1
330
A serverless data pipeline for Insurance Telematics
flerro
1
360
AWS ❤ SAM / Serverless On Stage #9
flerro
0
510
Tecnologie Groovy - Seconda Parte
flerro
0
490
Tecnologie Groovy - Prima parte
flerro
0
530
Other Decks in Technology
See All in Technology
dbtを中心にして組織のアジリティとガバナンスのトレードオンを考えてみた
gappy50
0
280
2024年活動報告会(人材育成推進WG・ビジネスサブWG) / 20250114-OIDF-J-EduWG-BizSWG
oidfj
0
230
PaaSの歴史と、 アプリケーションプラットフォームのこれから
jacopen
7
1.5k
GoogleのAIエージェント論 Authors: Julia Wiesinger, Patrick Marlow and Vladimir Vuskovic
customercloud
PRO
0
160
CDKのコードレビューを楽にするパッケージcdk-mentorを作ってみた/cdk-mentor
tomoki10
0
210
完全自律型AIエージェントとAgentic Workflow〜ワークフロー構築という現実解
pharma_x_tech
0
350
シフトライトなテスト活動を適切に行うことで、無理な開発をせず、過剰にテストせず、顧客をビックリさせないプロダクトを作り上げているお話 #RSGT2025 / Shift Right
nihonbuson
3
2.1k
When Windows Meets Kubernetes…
pichuang
0
300
AWSマルチアカウント統制環境のすゝめ / 20250115 Mitsutoshi Matsuo
shift_evolve
0
120
【JAWS-UG大阪 reInvent reCap LT大会 サンバが始まったら強制終了】“1分”で初めてのソロ参戦reInventを数字で振り返りながら反省する
ttelltte
0
140
「隙間家具OSS」に至る道/Fujiwara Tech Conference 2025
fujiwara3
7
6.5k
Bring Your Own Container: When Containers Turn the Key to EDR Bypass/byoc-avtokyo2024
tkmru
0
860
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
A Philosophy of Restraint
colly
203
16k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Adopting Sorbet at Scale
ufuk
74
9.2k
Documentation Writing (for coders)
carmenintech
67
4.5k
A designer walks into a library…
pauljervisheath
205
24k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.6k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Building Applications with DynamoDB
mza
93
6.2k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Agile that works and the tools we love
rasmusluckow
328
21k
Transcript
AWS Lambda Layers FTW! Serverless On Stage #20 - Milan,
12/02/2019
Working with AWS Lambda? Don’t repeat yourself!
HELLO! I am Francesco Lerro I am a Solution Architect
who loves the Cloud Find me on Twitter @flerro
DEPLOY Code External Library 1 External Library 2 MyFunction 1
data.json Function code Code External Library 1 Custom Module 1 MyFunction 2 data.json Function code Code Custom Module 1 External Library 2 MyFunction 3 data.json Function code Non DRY!
DEPLOY (shared modules) Code MyFunction 1 Function code Code MyFunction
2 Function code Code MyFunction 3 Function code External Library 2 data.json Custom Module 1 External Library 1 MyBundle1
Lambda Layer A collection of arbitrary code, third party libraries
and data that can be referenced by many Lambda functions
Lambda Layer benefits ∎ Enforce separation of concerns ∎ Enable
code reuse between functions ∎ Allow faster deployment, avoiding duplication
Using Lambda Layers 1. Put shared components and data in
a ZIP package 2. Create a new layer version, uploading the ZIP package 3. Reference layer version from a function
Paths Default paths for Lambda Layers unzipped
None
Lambda Layers limits ∎ Up to 5 layers can be
used per function ∎ Max extracted size per layer is 250MB
Lambda Layers access ∎ Shareable across same account, different AWS
accounts or public ∎ When deleted, a layer could not be referenced by newer functions ∎ AWS provides NumPy/SciPy layer for ML application
SAM A SAM template with Lambda and Layer, use SAM
CLI 0.9.0+
DEMO Code available on Github: https://github.com/flerro/lambda-layers-FTW
THANKS! Any questions? Content released under Public Domain Presentation template
by SlidesCarnival