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

Bedrock Agentsを搭載した図書管理LINE Chatbotを作ろうとしてみた @ JAWS-UG Yokohama

SimSta
January 27, 2024
160

Bedrock Agentsを搭載した図書管理LINE Chatbotを作ろうとしてみた @ JAWS-UG Yokohama

SimSta

January 27, 2024
Tweet

More Decks by SimSta

Transcript

  1. -*/&$IBUCPUͷߏ੒XSF$BQʢલճࢀরʣ Push AWS Cloud Developer Pull API Gateway Step Functions

    Bedrock EventBridge API Destination LINE GitHub Webhook CloudFormation Invoke Execute Call HTTPS Endpoint Secrets Manager API Key Application Composer User
  2. -*/&$IBUCPUͷߏ੒XSF$BQʢલճࢀরʣ Push AWS Cloud Developer Pull API Gateway Step Functions

    Bedrock EventBridge API Destination LINE GitHub Webhook CloudFormation Invoke Execute Secrets Manager API Key Application Composer User ᶄ4'OͰ#FESPDLΛݺͿ ᶃ4'OͰ)5514ΤϯυϙΠϯτΛݺͿ ᶇ$'Oͱ(JUΛಉظ ᶅ"QQMJDBUJPO$PNQPTFSͰ4'Oߏங ᶆ74$PEFͰ"QQMJDBUJPO$PNQPTFS Call HTTPS Endpoint
  3. ଓɿ-*/&$IBUCPUͷߏ੒ Push AWS Cloud Developer Pull API Gateway Step Functions

    Bedrock EventBridge API Destination LINE GitHub Webhook CloudFormation Invoke Execute Call HTTPS Endpoint Secrets Manager API Key Application Composer User Lambda DynamoDB S3 Lambda DynamoDB Aurora PostgreSQL Invoke Get/Update Sync Get/Put Put Get Identity Put Identity Vector Search Invoke
  4. ଓɿ-*/&$IBUCPUͷߏ੒ Push AWS Cloud Developer Pull API Gateway Step Functions

    Bedrock EventBridge API Destination LINE GitHub Webhook CloudFormation Invoke Execute Call HTTPS Endpoint Secrets Manager API Key Application Composer User Lambda DynamoDB S3 Lambda DynamoDB Aurora PostgreSQL Invoke Get/Update Sync Get/Put Put Get Identity Put Identity Vector Search Invoke -*/&$IBUCPU ʢલճࢀরʣ ձ࿩ཤྺ "HFOU ,OPXMFEHF#BTF
  5. "QQMJDBUJPO$PNQPTFSʢ4".ʣͱ-BNCEB • -BNCEBͳ͠ͷςϯϓϨʔτ͸ͦͷ··$'OͰ࢖͑Δ͕ɺ 
 -BNCEBΛೖΕΔ৔߹͸4".$-*Λ࢖ͬͯҰखؒඞཁ • 4όέοτΛ࡞੒͓͖ͯ͠ɺTBNQBDLBHFΛ࣮ߦ͢Δͱ 
 ؔ਺΍ϨΠϠʔͳͲΞʔςΟϑΝΫτ͕4ʹΞοϓ͞Εɺ 


    ςϯϓϨʔτͷࢀরઌ͕463*ʹม׵͞ΕΔ • ม׵͞ΕͨςϯϓϨʔτΛ$'OͰσϓϩΠʹར༻Ͱ͖Δ 
 ʢTBNEFQMPZͰ΋Մ͕ͩɺલճಉ༷(JUͱಉظ͍ͯ͠ΔͨΊ 
 ɹόʔδϣϯ؅ཧͱࣗಈσϓϩΠ͕྆ํ࢖͑Δʣ
  6. "VSPSB1PTUHSF42-ར༻࣌ͷཹҙ఺ Aurora PostgreSQL w %BUB"1*Λ༗ޮԽ͢Δ 
 ˠUܥ͸ඇରԠͷͨΊɺSH͔4FSWFSMFTTWΛ࢖͏ 
 ˠͣͬͱಈ͔͢ͳΒ4FSWFSMFTT͕͍͕҆ɺSH͸Ұ࣌ఀࢭ͕Ͱ͖Δ w

    QHWFDUPSҎ্ʹରԠͨ͠όʔδϣϯ͕ඞཁ 
 ˠࠓճ͸1PTUHSF42-Ͱ࡞੒ w ύϒϦοΫΞΫηεΛ༗ޮԽ͠ɺ)5514ΛڐՄ͢Δ w #FESPDL͕࢖༻͢ΔͨΊͷεΩʔϚɺϩʔϧɺςʔϒϧΛ࡞੒͢Δ 
 ˠϩʔϧͷೝূ৘ใ͸4FDSFUT.BOBHFSʹอ؅ 
 ˠςʔϒϧ͸&NCFEEJOHTϞσϧͱ࣍ݩΛ߹ΘͤΔ 
 ɹʢ5JUBO&NCFEEJOHͷ৔߹͸ʣ
  7. ·ͱΊ • 4FSWFSMFTTSF$BQͰ࡞੒ͨ͠-*/&$IBUCPUΛ࢖ͬͯ 
 ਤॻ؅ཧ"HFOUΛ࣮૷͔ͨͬͨ͠ • ,OPXMFEHF#BTFʹ"VSPSB1PTUHSF42-Λར༻Ͱ͖Δ • "HFOUTͰ,OPXMFEHF#BTF΍-BNCEBΛݺͼग़ͤΔ͕ 


    -BNCEBͷॲཧ΍"1*εΩʔϚʹ͓࡞๏͋Γ • ಈ࡞͢Δ"HFOUͷ࡞੒ʹ͸੒ޭʢϓϩϯϓτཁௐ੔ʣ͕ͨ͠ 
 -BNCEB͔Β*OWPLF"HFOUΛ࣮ߦ͢ΔͱΤϥʔɺݪҼௐࠪத