Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
AWS上でStripeを利用したアプリをより安全にデプロイする方法 /jaws-pankration-2021
Hidetaka Okamoto
PRO
November 21, 2021
Technology
1
87
AWS上でStripeを利用したアプリをより安全にデプロイする方法 /jaws-pankration-2021
JAWS PANKRATION 2021登壇資料です。
https://jawspankration2021.jaws-ug.jp/sessions/40
Hidetaka Okamoto
PRO
November 21, 2021
Tweet
Share
More Decks by Hidetaka Okamoto
See All by Hidetaka Okamoto
Shopify / Stripeで 静的サイトでも オンライン決済・物販をはじめよう / shifter-meetu-feb-2022
hideokamoto
PRO
0
410
Developerが Developer Advocateになった話 / dev-rel-meetup-tokyo-71
hideokamoto
PRO
0
100
Stripeでの オンライン決済理解した - エンジニア達の「〇〇完全に理解した」Talk #25
hideokamoto
PRO
0
390
Jamstack開発者のための App Runner入門
hideokamoto
PRO
1
190
WordPressでの webサイト制作2022 / ngk2022s
hideokamoto
PRO
0
190
JavaScript(TypeScript)で メディアサイトを インフラから構築する方法 / jsconf-jp-2021
hideokamoto
PRO
2
3.3k
Shifter Headlessと Headless WordPressの紹介
hideokamoto
PRO
0
940
Stripe & Next.js + AWS Amplify で会員 + 定期課金機能 / JP_Stripes20210903
hideokamoto
PRO
5
2.2k
後付けで 従量課金プランの 提供を開始した話 / 20210609-jp_stripes
hideokamoto
PRO
0
120
Other Decks in Technology
See All in Technology
金属加工屋の営業マンがSTマイクロで・・・
usashirou
0
170
創業1年目のスタートアップでAWSコストを抑えるために取り組んでいること / How to Keep AWS Costs Down at a Startup
yuj1osm
3
2.2k
組織に対してSREを適用するとどうなるか
kuniim
9
3k
「一通りできるようになった」その先の話
hitomi___kt
0
130
OPENLOGI Company Profile
hr01
0
12k
IoTを始めたきっかけの話と個人でできるIoTの今後 / 新年LT会「私の愛するIoT 2023」
you
0
240
SmartHRからOktaへのSCIM連携で作り出すHRドリブンのアカウント管理
jousysmiler
1
120
書籍を書きました。 そう、VS Codeで。
takumanakagame
4
4.6k
OCIコンテナサービス関連の技術詳細 /oke-ocir-details
oracle4engineer
PRO
0
780
MoT/コネヒト/Kanmu が語るプロダクト開発xデータ分析 - 分析から機械学習システムの開発まで一人で複数ロールを担う大変さ
masatakashiwagi
3
770
立ち止まっても、寄り道しても / even if I stop, even if I take a detour
katoaz
0
820
02_プロトタイピングの進め方
kouzoukaikaku
0
620
Featured
See All Featured
Writing Fast Ruby
sferik
613
58k
Why You Should Never Use an ORM
jnunemaker
PRO
49
7.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.5k
Side Projects
sachag
451
37k
Art, The Web, and Tiny UX
lynnandtonic
284
18k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
10
1.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
227
16k
Building a Scalable Design System with Sketch
lauravandoore
451
31k
A Modern Web Designer's Workflow
chriscoyier
689
180k
Six Lessons from altMBA
skipperchong
15
2.3k
Three Pipe Problems
jasonvnalue
89
8.9k
Atom: Resistance is Futile
akmur
256
24k
Transcript
How to develop application safely using Stripe on AWS
Agenda • About Stripe • Using AWS to use Stripe
more secure • Community information about Stripe
https://stripe.com/
We can add/do... • Send invoice and charge it •
Membership / Subscription • Create marketplace (CtoC) • POS / Finance / Card / eKYC / etc...
Use case https://getshifter.io https://stripe.com/
Use Case: Shifter • Save/update credit card • Create/modify subscription
• Provide PAYG option plan to customer • Analyze business (on Stripe Dashboard) • etc...
How to use it?
We need to get the API key to call Stripe
API
Publishable API Key • For frontend • Tokenize Card and
confirm payment Secret API Key • For backend • Access & modify all resource in Stripe
Publishable API Key • For frontend • Tokenize Card and
confirm payment Secret API Key • For backend • Access & modify all resource in Stripe
“Restricted API Key” -> Custom API key -> Custom policy
Use API Key to init Client
And call Stripe API
• Stripe Secret API key is critical • We can
access&modify real customer data • We need to hold it secure
AWS can hold the API key security
https://aws.amazon.com/secrets-manager/
None
None
• We never place API key on our local •
Just call AWS API to get it • Set once, only read
Amplify CLI supports AWS Secrets Manager (and SSM)
Automatically generate a code to get the env value
• Secrets Manager can handle API key secure • AWS
Amplify can use this from CLI • Stripe with AWS is good for developer • Let’s create your own SaaS bussiness !
Info & Community
Official Docs & Tutorial https://stripe.dev Japanese Community https://www.facebook.com/groups/jpstripes Discord https://discord.com/invite/stripe
https://qiita.com/advent-calendar/2021/stripe
https://stripe.events/jpdevguides
Thanks!