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
EC2 using Lumen and DynamoDB and SNS
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
yoppie
June 18, 2019
Technology
290
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
1k
Androidエンジニアが Flutterでアプリを リリースするまでの苦悩
yoppie
0
550
Navigation Component 実践編
yoppie
1
300
FragmentContainerViewとは
yoppie
0
800
Recent tips collection
yoppie
0
1.1k
Distribute Android app updates with bitrise
yoppie
0
1.4k
sabotage
yoppie
1
980
Play with Kotlin
yoppie
1
650
Other Decks in Technology
See All in Technology
新しいVibe Codingと”自走”について
watany
5
240
AIソロプレナー時代に2ヶ月で20人増員した事業創造会社の開発組織の話
miyatakoji
0
260
AI駆動開発が変える、大規模開発の前提 ーHuman in the Loop から Human on the Loop へ / AIE2026
visional_engineering_and_design
30
22k
LLMと共に進化するプロセスを目指して
ymatsuwitter
12
3.7k
作って終わりにしない タイミーのセマンティックレイヤー育成の現在地
chanyou0311
2
1.5k
機械学習を「社会実装」するということ 2026年夏版 / Social Implementation of Machine Learning June 2026 Version
moepy_stats
2
440
チームで実践する AI-DLC 思考の軌跡を残すチェックポイント設計
belongadmin
0
3.1k
運用を見据えたAIエージェント設計実践
amacbee
1
3.4k
Agentic Defenseとともにセキュリティエンジニアが輝き続けるには / How Security Engineers Can Keep Excelling with Agentic Defense
yuj1osm
0
130
2026.06.13_AI時代に事業会社が「SIer出身エンジニア」を求める理由 / Why Businesses Seek Engineers with a System Integrator Background in the AI Era
jumtech
0
950
実装は速くなった、レビューはどうする? ― 自身のレビューをAIで再現させるサーヴァントエンジニアリングのすゝめ / Implementation got faster. So what about reviews? — An invitation to Servant Engineering: Recreating your own code reviews with AI
nrslib
7
4.3k
noUncheckedIndexedAccess、3時間、1万円。 / noUncheckedIndexedAccess, 3 Hours, 10,000 JPY.
kaonavi
1
340
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
570
Paper Plane (Part 1)
katiecoart
PRO
0
8.7k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
380
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
560
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
200
Prompt Engineering for Job Search
mfonobong
0
340
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Bash Introduction
62gerente
615
210k
So, you think you're a good person
axbom
PRO
2
2.1k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
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