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
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
AWS Lambda & Ruby/Rails with SAM
Search
Ken Collins
March 06, 2019
Programming
4.7k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWS Lambda & Ruby/Rails with SAM
Ken Collins
March 06, 2019
More Decks by Ken Collins
See All by Ken Collins
Experts.js @ Norfolk.js
metaskills
0
120
The Rise of AI Copilots
metaskills
0
230
Real-World AI Automation with Lambda & Bedrock
metaskills
0
190
The Lambda Sidecar Pattern for Event-Driven Kubernetes
metaskills
0
470
The Case for Rails on Lambda v1
metaskills
0
800
Learn to Program The Cloud with Ruby & AWS Lambda
metaskills
0
140
Full-Stack to Functions & Back Again
metaskills
0
420
Turbo Applications - Winning with Ajax + pushState + Rails
metaskills
0
340
Modular CSS & Sass
metaskills
1
220
Other Decks in Programming
See All in Programming
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
200
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
990
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
140
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
450
DynamoDBの基礎を振り返りながらベクトル検索機能を理解する
musan
3
270
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
4
3.4k
FastAPI の並行処理モデルを完全に理解する
hoto17296
9
3.8k
AIと壁打ちしながら進めるコスト管理
fufuhu
2
2k
巨大モノリシックアプリ モダン化大作戦
ktcryomm
0
220
信頼性の目標を誰も求めてない
shubox
0
500
型解析で実現する Go の言語内 DSL / Conference に Go! タイムテーブルの歩き方 for Gophers
mazrean
0
130
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
1
410
Featured
See All Featured
Mind Mapping
helmedeiros
1
350
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
600
Darren the Foodie - Storyboard
khoart
PRO
3
3.9k
The Limits of Empathy - UXLibs8
cassininazir
1
640
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Practical Orchestrator
shlominoach
191
12k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Transcript
AWS Lambda & Ruby/Rails with SAM
Congratulations! The simple fact that you are sitting here listening
to me, means you've made a glorious contribution to Science! Tragic, but informative. Cave Johnson
Ken Collins Staff Engineer @CustomInk @MetaSkills
None
⠀ ⠀ ⠀
KNOWLEDGE Rails & Lambda Ruby & Lambda Tech Intro AWS
SAM Objectives & Results
None
None
Change The World One Lambda at a Time!
Using Ruby with AWS Lambda & SAM https://github.com/757rb/hello-757rb-lambda
Custom Ink | Tech Blog https://technology.customink.com
https://dctechslack.herokuapp.com https://slackin757dev.herokuapp.com DCTech || 757Dev
Tech Intro
Strap Bootstrap your macOS development system. GitHub Project https://github.com/MikeMcQuaid/strap
• ./bin/ • bootstrap, setup, build, server, deploy, test,
… • Usually Bash Strap
AWS Lambda
None
AWS SAM GitHub Project https://github.com/awslabs/serverless-application-model/
$ sam
https://github.com/awslabs/serverless- application-model/blob/master/versions/ 2016-10-31.md
https://docs.aws.amazon.com/ AWSCloudFormation/latest/UserGuide/aws- template-resource-type-ref.html CLOUDFORMATION
$ sam local start-api
$ sam build --use-container
$ sam package … $ sam deploy …
Ruby & Lambda
Project Pillars • Local Development Feedback • Using Gems with
Native Extensions • Using DynamoDB
Contrived Architecture DynamoDB HTTP /plos?query={query}
None
Docker Image lambci/lambda:ruby2.5
Local Dev Deps
Easy Development & Browser Refreshes
Patterns • Directories (app, test, etc) • Lean Handler &
PORO Usage • Debug HTML. Event, Context, & ENV • Minitest, TravisCI, & Capybara* *not really
Aws::Record GitHub Project https://github.com/aws/aws-sdk-ruby-record
DynamoDB
Used in IAM Execution Role DynamoDB
None
Patterns…
None
Patterns • Easy/Lazy Development & Test • Table Migrations •
SimpleTable On Demand Defaults
Using Ruby with AWS Lambda & SAM https://github.com/757rb/hello-757rb-lambda
Rails & Lambda
Product Site http://rubyonjets.com
Ruby on Jets
Ruby on Jets
None
None
None
None
None
None
None
None
None
None
Little Gotcha List • Docker Shared Volume Perf • Logging
& RAILS_LOG_TO_STDOUT • Keeping Package Size Down. • Invoke URL & Custom Domains
None
Coming Soon • Quality Rack Integration. Session, Cookies, & More.
• Deploy asset:precompile to S3. • Encrypted Session Secret via AWS System Manager Param Store. • Better Gemfile dev/test groups.
None
Lambda Layers
--help
None
RailsConf 2019
https://dctechslack.herokuapp.com https://slackin757dev.herokuapp.com DCTech || 757Dev
None