Upgrade to Pro — share decks privately, control downloads, hide ads and more …

さっそくチェック! Amplify Gen2のデプロイ体験

oto trip
December 14, 2023

さっそくチェック! Amplify Gen2のデプロイ体験

oto trip

December 14, 2023
Tweet

More Decks by oto trip

Other Decks in Technology

Transcript

  1. Copyright © MEC Co., Ltd. All Rights reserved. 1 ͬͦ͘͞νΣοΫʂ

    Amplify Gen2ͷσϓϩΠମݧ 2023.12.14ɹAmplify Boost Up #04
  2. Copyright © MEC Co., Ltd. All Rights reserved. Amplify Gen2

    🎉 Amplify Gen2͸ύϒϦοΫϓϨϏϡʔͷஈ֊Ͱ͢ɻ ࠓޙɺେ෯ͳมߋ͕ൃੜ͢ΔՄೳੑ͕͋Γ·͢ɻ
  3. Copyright © MEC Co., Ltd. All Rights reserved. 4 ໊લ

    ଍ཱ ༏࢘ʢ@adt0705 ʣ ॴଐ ϝοΫגࣜձࣾ Amplify Japan UG ӡӦ ΍ͬͯΔ͜ͱ ৽نࣄۀͷϞόΠϧΞϓϦ։ൃ Α͘࢖͏ AWS, Next.js / React Native ٕज़, ݴޠ Python, TypeScript ࣗݾ঺հ
  4. Copyright © MEC Co., Ltd. All Rights reserved. 5 •

    Amplify Gen2ͷσϓϩΠମݧ ࠓ೔࿩͢͜ͱ • ͦ΋ͦ΋Amplify • Amplify Hosting ࠓ೔࿩͞ͳ͍͜ͱ
  5. Copyright © MEC Co., Ltd. All Rights reserved. σϞ &

    ݱঢ়ͷνΣοΫ Amplify Gen2ͷಛ௃ ·ͱΊ ΋͘͡
  6. Copyright © MEC Co., Ltd. All Rights reserved. 8 •

    Full TypeScript όοΫΤϯυఆٛํ๏͕ɺैདྷͷCLI͔ΒTypeScriptʹ • Sandbox؀ڥ ։ൃ؀ڥͷߏங͕༰қʹ • AWS Cloud Development Kit (CDK) ʹΑΔ֦ு ओཁΧςΰϦҎ֎ͷϦιʔεఆ͕ٛ༰қʹ Amplify Gen2ͷಛ௃
  7. Copyright © MEC Co., Ltd. All Rights reserved. σϞ &

    ݱঢ়ͷνΣοΫ Amplify Gen2ͷಛ௃ ·ͱΊ ΋͘͡
  8. 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
  9. Copyright © MEC Co., Ltd. All Rights reserved. 15 StorageΧςΰϦকདྷతʹ͸ʁ

    ←কདྷతʹ͜͏ͳΔɺ ɹΒ͍͠ ͳͷͰɺ ͓ͦΒ͘౷߹͞Ε·͢ https://docs.amplify.aws/gen2/reference/project-structure/
  10. 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ʹ νϟϨϯδʂ
  11. Copyright © MEC Co., Ltd. All Rights reserved. 17 •

    Full TypeScriptͰܕ҆શͳ։ൃ͕ՄೳʹͳΔ • Sandbox؀ڥͰAWS্Ͱ͙͢ʹࢼͤΔ • CDKʹΑΔ֦ு͕༰қʹͳΔ • ͜Ε͔ΒͷਐԽʹظ଴͍ͯ͠·͢ʂ ·ͱΊ