Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Lambda Layers FTW!
Search
Francesco Lerro
February 12, 2019
Technology
1.1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Lambda Layers FTW!
A technical deep dive into AWS Lambda Layers!
Francesco Lerro
February 12, 2019
Transcript
15 slides
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
More Decks by Francesco Lerro
See All by Francesco Lerro
Lambda alla spina
flerro
0
35
Playing with serverless building blocks
flerro
0
190
Orchestration VS Choreography in Serverless
flerro
0
440
Serverless architecture patterns
flerro
1
480
A serverless data pipeline for Insurance Telematics
flerro
1
500
AWS ❤ SAM / Serverless On Stage #9
flerro
0
650
Tecnologie Groovy - Seconda Parte
flerro
0
600
Tecnologie Groovy - Prima parte
flerro
0
650
Other Decks in Technology
See All in Technology
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
160
設計手法を「道具」として使いこなすために
a_suenami
7
1.7k
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
150
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
490
飯から始まるデータエンジニア
sansantech
PRO
0
140
攻撃と守りは何が変わり、何が変わらないのか~最近の不正アクセスから考える、リスク評価と標準の使いどころ
oidfj
2
310
IoTのデータ保存をSREの観点で考える
grimoh
1
120
Taking back control of your AI development
inesmontani
PRO
0
310
ポケモンバトルのAIエージェント
koji_kawamura
0
150
実測データからサービスの成長余力を測る。負荷シナリオ・テストデータ・限界値の設計
kazatohiei
0
170
MCPでネットワーク障害調査を自動化する前に直すべき3つのこと
yama3133
1
660
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
Featured
See All Featured
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
630
Amusing Abliteration
ianozsvald
1
400
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
My Coaching Mixtape
mlcsv
0
390
Raft: Consensus for Rubyists
vanstee
143
7.9k
How to Ace a Technical Interview
jacobian
280
24k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
620
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
910
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
500
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k