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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
300
FragmentContainerViewとは
yoppie
0
810
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
「今盗んで、後で解く」に備える ― AWSのポスト量子暗号入門
yama3133
2
270
人にやさしく、AIにやさしく、書き手を選ばないIaCのガードレール再考 / Rethinking IaC Guardrails for Humans and AI Alike
kohbis
5
1.7k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
16
120k
雪かき部 #7 もう怖くない!SELECT文!
foursue
0
140
AI駆動開発で仕様はどこまで書くべきか? ― 人とAIの責務境界から考える開発プロセスの実践
takahiromatsui
1
200
[Kiro Meetup #7] Kiro Crew Dive Deep
konippi
0
410
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
1
1.8k
Terraformを用いたJamf Pro構成のIaC, GitOps化への挑戦
yukun
0
110
AIに書かせて、プラットフォームで縛る ― EKSプラットフォームで実践した責任境界と権限設計
elmodev09
1
970
営業オントロジーの作り方と、エージェントからの辿り方 ── ナレッジワークの現場から
kworkdev
PRO
1
180
AIに会社の文脈を理解させる技術~上流工程・非エンジニアにも広げるハーネスエンジニアリング実践~
ochtum
0
190
なぜAI任せのゲームは面白くならないのか?
hirohasuyoutube
0
260
Featured
See All Featured
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
610
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
The SEO identity crisis: Don't let AI make you average
varn
0
560
The browser strikes back
jonoalderson
0
1.7k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
How STYLIGHT went responsive
nonsquared
100
6.3k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.1k
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