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
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
150
信頼性の目標を誰も求めてない
shubox
0
490
Press start. Python's next generation.
willingc
PRO
3
310
変化を抱擁するドキュメントの作り方 - ビジネスルール駆動開発がもたらす、コードとの新しい関係
ioki
2
110
typoなんかねぇよ
raspython3
0
660
Deep dive into the select statement (GopherCon UK)
jespino
0
170
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
860
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
580
PHPプロジェクトの結合バランスを可視化する #php_night
kajitack
0
220
Claude Codeを組織的に動かして月400PRを実現した話
happy_ryo
0
260
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
0
140
バグを直したら useEffect が消えた
colorful12
3
840
Featured
See All Featured
Skip the Path - Find Your Career Trail
mkilby
1
220
Why Our Code Smells
bkeepers
PRO
340
58k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Thoughts on Productivity
jonyablonski
76
5.4k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.1k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
The Limits of Empathy - UXLibs8
cassininazir
1
640
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
260
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