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
さっそくチェック! Amplify Gen2のデプロイ体験
Search
oto trip
December 14, 2023
Technology
1
230
さっそくチェック! Amplify Gen2のデプロイ体験
oto trip
December 14, 2023
Tweet
Share
More Decks by oto trip
See All by oto trip
Maestroで楽がしたい!
ototrip
0
100
Amplify + React Nativeで挑む! 新規事業アプリの開発
ototrip
0
300
TypeScript と Amplify を使った概念検証術
ototrip
0
340
Other Decks in Technology
See All in Technology
IaCジェネレーターとBedrockで詳細設計書を生成してみた
tsukasa_ishimaru
4
870
開発生産性大幅アップ!Postman VS Code拡張機能
nagix
3
630
非同期推論システムによるコスト削減と信頼性向上
koki_nishihara
1
360
Kernel MemoryでAzure OpenAI Serviceとお手軽データソース連携
mitsuzono
1
280
今日からできる!簡単 .NET 高速化 Tips -2024 edition-
xin9le
7
3.6k
コードや知識を組み込む / Incorporate Code and knowledge
ks91
PRO
0
130
どうするコスト最適化のトレードオフ
tetsuyaooooo
1
700
Tellus の衛星データを見てみよう #mf_fukuoka
kongmingstrap
0
260
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
1
1.6k
Next.js に疲れた私は Vue3 に癒やされた
akagire
0
120
プロンプトエンジニアリングでがんばらない-Agentic Workflow へ-近藤憲児
kenjikondobai
6
1.2k
Rustで「プリズモイダル法」を利用して「土量計算」をガチでやる
nokonoko1203
1
270
Featured
See All Featured
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
275
13k
Teambox: Starting and Learning
jrom
128
8.4k
Designing for humans not robots
tammielis
248
25k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
33
6k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
How to Ace a Technical Interview
jacobian
273
22k
Code Reviewing Like a Champion
maltzj
515
39k
Testing 201, or: Great Expectations
jmmastey
29
6.4k
How STYLIGHT went responsive
nonsquared
92
4.8k
Transcript
Copyright © MEC Co., Ltd. All Rights reserved. 1 ͬͦ͘͞νΣοΫʂ
Amplify Gen2ͷσϓϩΠମݧ 2023.12.14ɹAmplify Boost Up #04
Copyright © MEC Co., Ltd. All Rights reserved. Amplify Gen2
🎉
Copyright © MEC Co., Ltd. All Rights reserved. Amplify Gen2
🎉 Amplify Gen2ύϒϦοΫϓϨϏϡʔͷஈ֊Ͱ͢ɻ ࠓޙɺେ෯ͳมߋ͕ൃੜ͢ΔՄೳੑ͕͋Γ·͢ɻ
Copyright © MEC Co., Ltd. All Rights reserved. 4 ໊લ
ཱ ༏࢘ʢ@adt0705 ʣ ॴଐ ϝοΫגࣜձࣾ Amplify Japan UG ӡӦ ͬͯΔ͜ͱ ৽نࣄۀͷϞόΠϧΞϓϦ։ൃ Α͘͏ AWS, Next.js / React Native ٕज़, ݴޠ Python, TypeScript ࣗݾհ
Copyright © MEC Co., Ltd. All Rights reserved. 5 •
Amplify Gen2ͷσϓϩΠମݧ ࠓ͢͜ͱ • ͦͦAmplify • Amplify Hosting ࠓ͞ͳ͍͜ͱ
Copyright © MEC Co., Ltd. All Rights reserved. 6 https://docs.amplify.aws/gen2/build-a-backend/
ࠓɺ͜ͷ͋ͨΓͷΛ͠·͢ɻ Gen2 Amplify ΧςΰϦ
Copyright © MEC Co., Ltd. All Rights reserved. σϞ &
ݱঢ়ͷνΣοΫ Amplify Gen2ͷಛ ·ͱΊ ͘͡
Copyright © MEC Co., Ltd. All Rights reserved. 8 •
Full TypeScript όοΫΤϯυఆٛํ๏͕ɺैདྷͷCLI͔ΒTypeScriptʹ • Sandboxڥ ։ൃڥͷߏங͕༰қʹ • AWS Cloud Development Kit (CDK) ʹΑΔ֦ு ओཁΧςΰϦҎ֎ͷϦιʔεఆ͕ٛ༰қʹ Amplify Gen2ͷಛ
Copyright © MEC Co., Ltd. All Rights reserved. 9 Gen1͔ΒGen̎
Gen1 Gen2
Copyright © MEC Co., Ltd. All Rights reserved. σϞ &
ݱঢ়ͷνΣοΫ Amplify Gen2ͷಛ ·ͱΊ ͘͡
Copyright © MEC Co., Ltd. All Rights reserved. 11 V
Init App
Copyright © MEC Co., Ltd. All Rights reserved. 12 DataΧςΰϦ
ʢσϞʣ
Copyright © MEC Co., Ltd. All Rights reserved. 13 SandboxͷதԿͳͷ͔ʁ
←CDKίϚϯυ ͭ·Γɺ σϓϩΠํ๏ͦͷͷ͕ CDKʹஔ͖ΘͬͯΔ https://github.com/aws-amplify/amplify-backend/blob/main/packages/backend-deployer/src/cdk_deployer.ts
Copyright © MEC Co., Ltd. All Rights reserved. 14 StorageΧςΰϦ
ʢσϞʣ
Copyright © MEC Co., Ltd. All Rights reserved. 15 StorageΧςΰϦকདྷతʹʁ
←কདྷతʹ͜͏ͳΔɺ ɹΒ͍͠ ͳͷͰɺ ͓ͦΒ͘౷߹͞Ε·͢ https://docs.amplify.aws/gen2/reference/project-structure/
Copyright © MEC Co., Ltd. All Rights reserved. 16 FunctionsΧςΰϦ
https://docs.amplify.aws/gen2/build-a-backend/data/custom-business-logic/ ͔͠͠Step1 import {Func} from '@aws-amplify/backend’; ͕Ͱ͖ͣɺஅ೦͠·ͨ͠ Gen1ͷ@function directiveʹ νϟϨϯδʂ
Copyright © MEC Co., Ltd. All Rights reserved. 17 •
Full TypeScriptͰܕ҆શͳ։ൃ͕ՄೳʹͳΔ • SandboxڥͰAWS্Ͱ͙͢ʹࢼͤΔ • CDKʹΑΔ֦ு͕༰қʹͳΔ • ͜Ε͔ΒͷਐԽʹظ͍ͯ͠·͢ʂ ·ͱΊ