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
370
さっそくチェック! Amplify Gen2のデプロイ体験
oto trip
December 14, 2023
Tweet
Share
More Decks by oto trip
See All by oto trip
AWS Amplify Gen2 GA ! 裏側をちょっと覗いて、Gen2と仲良くなろう.pdf
ototrip
1
190
Maestroで楽がしたい!
ototrip
0
180
Amplify + React Nativeで挑む! 新規事業アプリの開発
ototrip
0
370
TypeScript と Amplify を使った概念検証術
ototrip
0
390
Other Decks in Technology
See All in Technology
いざ、BSC討伐の旅
nikinusu
2
780
AIチャットボット開発への生成AI活用
ryomrt
0
170
個人でもIAM Identity Centerを使おう!(アクセス管理編)
ryder472
4
230
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
200
VideoMamba: State Space Model for Efficient Video Understanding
chou500
0
190
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
230
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
120
アジャイルチームがらしさを発揮するための目標づくり / Making the goal and enabling the team
kakehashi
3
140
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
10
1.1k
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
510
Featured
See All Featured
The Invisible Side of Design
smashingmag
298
50k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Embracing the Ebb and Flow
colly
84
4.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
It's Worth the Effort
3n
183
27k
Site-Speed That Sticks
csswizardry
0
28
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
RailsConf 2023
tenderlove
29
900
Build your cross-platform service in a week with App Engine
jlugia
229
18k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
BBQ
matthewcrist
85
9.3k
The Cult of Friendly URLs
andyhume
78
6k
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ʹΑΔ֦ு͕༰қʹͳΔ • ͜Ε͔ΒͷਐԽʹظ͍ͯ͠·͢ʂ ·ͱΊ