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.2k
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
PHPで家庭用ゲーム機の専用コントローラーをMIDIデバイスとして扱ってみる
wind111
0
200
RAGの改善を速く回すための評価基盤
yosukeyoshida
6
3.6k
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
2
470
プラガブルで宣言的なソフトウェアファクトリーを支えるTypeScript
timakin
2
660
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
230
NutanixへのSSHアクセスの今後について
shadowhat
0
170
[DBRE Summit 26] DBRE はデータベース運用をどう変えたのか
_awache
0
130
攻撃と守りは何が変わり、何が変わらないのか~最近の不正アクセスから考える、リスク評価と標準の使いどころ
oidfj
2
320
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
520
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
160
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
180
新規事業開発でのAWS活用成功談&失敗談! 〜新規事業開発を専門に行うRelicならではのAWS活用〜
amixedcolor
1
140
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Designing for Timeless Needs
cassininazir
1
570
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
390
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
480
From π to Pie charts
rasagy
1
460
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
310
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
410
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
910
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
61k
Building AI with AI
inesmontani
PRO
1
1.4k