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
EC2 using Lumen and DynamoDB and SNS
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yoppie
June 18, 2019
Technology
300
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
EC2 using Lumen and DynamoDB and SNS
yoppie
June 18, 2019
More Decks by yoppie
See All by yoppie
AmperとFleetを使ったAndroidアプリ
yoppie
0
1.1k
Androidエンジニアが Flutterでアプリを リリースするまでの苦悩
yoppie
0
560
Navigation Component 実践編
yoppie
1
310
FragmentContainerViewとは
yoppie
0
820
Recent tips collection
yoppie
0
1.1k
Distribute Android app updates with bitrise
yoppie
0
1.4k
sabotage
yoppie
1
1k
Play with Kotlin
yoppie
1
660
Other Decks in Technology
See All in Technology
Metadata - Section 2: Simple Metadata & Meta Tags
mohab1
0
120
Let's Change Our World—Again
snoozer05
PRO
5
340
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
140
CSS2026:OWS研究会・招待講演「世界観を、実装する」
atsush1_sada
2
220
Claude for Google Workspaces ポン出し/claude-for-google-workspace-slide-conversion
emiki
0
140
野蛮なアジャイル [サイボウズ発!]組織の常識を覆した反骨のスクラム実践記 / Barbaric Agile - Enterprise Agile Study Group
ama_ch
0
120
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
1.1k
FinOps Agentが生んだ技術負債:コスト自動調査の落とし穴と解消までの道のり
oasis1994liveforever
3
250
sue445's proposals 2026
sue445
0
130
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
190
macOS Golden Gate 時代のMac管理
tategami
0
130
ウォンテッドリーの最近のプロダクトと技術の紹介
stomk
0
330
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Are puppies a ranking factor?
jonoalderson
2
4.1k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
500
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
610
My Coaching Mixtape
mlcsv
0
360
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
720
Transcript
LumenΛಋೖͨ͠EC2ͱ DynamoDBͱSNS
֓ཁ • খنͷWebΞϓϦέʔγϣϯ • খنͷDB • ϝʔϧૹ৴ • ར༻ݴޠ PHPͱ͍͏റΓ
ٕज़બఆ • AWS EC2, DynamoDB, SNS • ϑϨʔϜϫʔΫ Lumen
Lumen
Lumen • Laravel͕ϕʔεͱͳ͍ͬͯΔ ϚΠΫϩϑϨʔϜϫʔΫ • খ͞ͳwebαʔϏε, RESTful API
Laravelͱͷҧ͍ • σΟϨΫτϦߏ • artisanίϚϯυ • Ϩεϙϯεͷ͞ • Etc…
Lumen ಋೖ
LumenͱDynamoDB
खॱ 1. laravel-dynamodbΛcomposerͰΠϯετʔϧ (aws-sdk͕ಋೖ͞ΕΔ) 2. bootstrap/app.phpͷमਖ਼ 3. config/dynamodb.phpͷ࡞
ιʔείʔυ
envϑΝΠϧ࡞ .env.local .env.dev .env.test .env.prod LocalStackΛͬͯϩʔΧϧͰDynamoDBΛΤϛϡϨʔτ͢Δ͜ͱΛ લఏͱ͍ͯ͠·͢ɻར༻͢Δϙʔτ4569Ͱ͢ɻ(ެࣜΑΓ) dev,test,prodڥશͯͰIAMΛͬͯೝূ͍ͤͯ͞·͢ɻ IAMΛ͏ͱೝূใΛιʔείʔυʹهड़͢Δඞཁ͕ͳ͍ͷͰྑ͍Ͱ͢ɻ
࣮ྫ ࠓճsave()ͱall()Λ͍·ͨ͠ɻ ͨͩɺRDBͰͳ͍DBʹରͯ͠ Eloquent ORMΛར༻͢Δͷ Ͳ͏ͳͷͩΖ͏ͱࢥͬͯ͠·͍·͢ɻ
LumenͱSNS
AWS SNS • ௨ΛૹΔ͜ͱ͕Ͱ͖ΔαʔϏε push௨ • ϝʔϧૹ৴SESͷํ͕͍͍ͯΔ • SESʹ౦ژϦʔδϣϯ͕ͳ͘ SNSʹ͋Δ
खॱ 1. AWS SDKͷಋೖ(্هͰಋೖࡁΈ) 2. bootstrap/app.phpͷमਖ਼ 3. config/sns.phpΛ࡞ 4. envϑΝΠϧΛ࡞
bootstrap/app.phpͷमਖ਼
config/sns.phpΛ ࡞
envϑΝΠϧ࡞ .env.local LocalStackΛͬͯϩʔΧϧͰSNSΛΤϛϡϨʔτ͢Δ͜ͱΛલఏͱ͍ͯ͠·͢ɻ ϩʔΧϧͰ࡞ࡁΈͷτϐοΫͷARNΛSNS_TOPIC_ARNʹهࡌ͠·͢ɻ ར༻͢Δϙʔτ4575Ͱ͢ɻ(ެࣜΑΓ)
envϑΝΠϧ࡞ .env.dev .env.test .env.prod dev,test,prodڥશͯͰIAMΛͬͯೝূ͍ͤͯ͞·͢ɻ IAMΛ͏ͱೝূใΛιʔείʔυʹهड़͢Δඞཁ͕ͳ͍ͷͰྑ͍Ͱ͢ɻ (SNS_CONNECTION֤ڥͰมߋ)
࣮ྫ
https://qiita.com/yoppie_x/items/ 9b4c6a578227d4ba5cda