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
390
さっそくチェック! 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
200
Maestroで楽がしたい!
ototrip
0
180
Amplify + React Nativeで挑む! 新規事業アプリの開発
ototrip
0
380
TypeScript と Amplify を使った概念検証術
ototrip
0
400
Other Decks in Technology
See All in Technology
Oracle Cloudの生成AIサービスって実際どこまで使えるの? エンジニア目線で試してみた
minorun365
PRO
4
290
Opcodeを読んでいたら何故かphp-srcを読んでいた話
murashotaro
0
280
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
170
ゼロから創る横断SREチーム 挑戦と進化の軌跡
rvirus0817
2
270
マイクロサービスにおける容易なトランザクション管理に向けて
scalar
0
140
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
150
Snykで始めるセキュリティ担当者とSREと開発者が楽になる脆弱性対応 / Getting started with Snyk Vulnerability Response
yamaguchitk333
2
190
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
570
Wantedly での Datadog 活用事例
bgpat
1
530
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
170
2024年にチャレンジしたことを振り返るぞ
mitchan
0
140
Featured
See All Featured
Unsuck your backbone
ammeep
669
57k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Documentation Writing (for coders)
carmenintech
66
4.5k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Navigating Team Friction
lara
183
15k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Writing Fast Ruby
sferik
628
61k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
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ʹΑΔ֦ு͕༰қʹͳΔ • ͜Ε͔ΒͷਐԽʹظ͍ͯ͠·͢ʂ ·ͱΊ