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

Step FunctionsとInfrastructure Composerで挑むローコード ...

SimSta
November 22, 2024
180

Step FunctionsとInfrastructure Composerで挑むローコード × Platform Engineering @ JAWS-UG 青森

SimSta

November 22, 2024
Tweet

More Decks by SimSta

Transcript

  1. ๺ւಓཱྀߦʹྫ͑Δͱʜ 4%-$ ໨త஍·Ͱͷ஍ਤ %FW0QT ަ௨खஈʢ৐Γ෺ʣ 1MBUGPSN&OHJOFFSJOH ަ௨Πϯϑϥɺλʔϛφϧ ʢࠃಓɺߴ଎ɺۭ࿏ɺߤ࿏౳ʣ ࡳຈˠവؗ΁ߦ͘ͷʹ ͔ͭͯ͸మಓͰ͔͔͕࣌ؒͬͨ

    ࣨའ͔Βߤ࿏Λ੔උͰ͖Ε͹ େ෯ʹ͕࣌ؒ୹ॖͰ͖Δ͔΋͠Εͳ͍ খḺˠ໢૸΁ߦ͘ͱ͢Δͱ ৐Γ෺ʢెาंమಓഅʣ͕%FW0QT ಓ΍৐Γ෺ͷ੔උ͕1MBUGPSN&OHJOFFSJOH $PQZSJHIU˜4PVHPV4IPVLFO$0 -UE"MM3JHIUT3FTFSWFE
  2. ηϧϑαʔϏεπʔϧͷݕ౼ͱ՝୊ • ࣄۀձࣾͱҟͳΓҊ݅͝ͱʹγεςϜ͕ҟͳΔ 
 ˠڞ௨ͷίϯϙʔωϯτ͸ఏڙ͕೉͍͠ 
 ˠ֤νʔϜͷΞʔΩςΫνϟΛे෼ʹௐࠪ͢Δඞཁ͋Γ • πʔϧ͸؅ཧνʔϜશһ͕ϝϯςφϯεͰ͖Δͷ͕ཧ૝ 


    ˠ։ൃऀνʔϜͱҟͳΓٕज़ελοΫ͕Ұக͠ʹ͍͘ 
 ɹΠϯϑϥɺ৘γεɺύʔτφʔΛؚΉνʔϜͳͲ • ϝϯςφϯεͷೝ஌ෛՙΛͰ͖Δ͚ͩԼ͍͛ͨ 
 ˠίʔυͷϝϯςφϯε͸Ͱ͖ΔݶΓͨ͘͠ͳ͍ 
 ˠͦ΋ͦ΋ίʔυΛ͋·Γॻ͖ͨ͘ͳ͍ɺࢹ֮త௚ײతʹ࡞Γ͍ͨ 
 ɹʢ͕ɺίʔυͱͯ͠͸อଘ͍ͨ͠ɾɾɾʣ
  3. LBHUPPMTͷ঺հ • (VBSE%VUZ4VNNBSJ[FS • (VBSE%VUZͷݕग़݁ՌΛ#FESPDLͰ෼͔Γ΍͔ͯ͘͢͠Β௨஌ • 4FDVSJUZ)VCʹू໿͞Εͨ(VBSE%VUZݕग़݁Ռʹ΋ରԠ • $PEF#VJME3VOOFS •

    ()&ͷ4FMGIPTUFE3VOOFSΛϚωʔδυͰల։ • 71$ͷ࡞੒͔Β(JU)VC"QQTܦ༝Ͱͷ઀ଓ·ͰΨΠυ෇͖Ͱ࡞੒ • /"54DIFEVMFS • /"5(BUFXBZΛ༵೔ͱ࣌ؒͰ࡞੒࡟আ͠ɺίετΛ࡟ݮ • TBNQMFTFDVSJUZIVCOPUJGJDBUJPOT • 4FDVSJUZ)VC͔Βͷ௨஌Λ4MBDL΁ૹ৴͢ΔͨΊͷ5FSSBGPSNίʔυ
  4. ௨஌ઌʹ4MBDLʢ&ϝʔϧ౳΋ՄʣΛ࢖͏͜ͱͰ ʢ΄΅ʣϊʔίʔυΛ࣮ݱ AWS Cloud GuardDuty Step Functions Bedrock SNS Invoke

    Execute EventBridge User Threats E-Mail Publish Slack Security Hub ᶃ(VBSE%VUZͷΠϕϯτΛ௚઀र͏ ᶄ4FDVSJUZ)VCʹू໿͞ΕͨΠϕϯτΛर͏ ͷͲͪΒ͔Λબ୒ͯ͠σϓϩΠՄೳ (VBSE%VUZ4VNNBSJ[FS
  5. $PEF#VJME3VOOFS $PEF#VJMEΛ࢖ͬͨ4FMGIPTUFE3VOOFSͷηοτΞοϓΛࢧԉ AWS Cloud AWS Cloud Network Load 
 Balancer

    NAT gateway GitHub Enterprise NAT gateway CodeBuild ɾ$PEF$POOFDUJPOTϗετ ɾ$PEF$POOFDUJPOT઀ଓ ɾ8FCIPPL ͜ͷϦιʔεҰࣜΛॱ൪ʹ࡞੒
  6. /"54DIFEVMFS /"5(BUFXBZ͸ఀࢭͰ͖ͳ͍ͷͰɺεέδϡʔϧͰ࡞੒࡟আ͢Δઓ๏ͰίετΛઅ໿ AWS Cloud Step Functions NAT Gateway SNS Create

    Stack Execute Scheduler User Error Notification Publish Step Functions Execute Scheduler Publish Delete Stack
  7. ϩʔίʔυº1MBUGPSN&OHJOFFSJOHͷ՝୊ • ,"(ͷ૊৫ܗଶʹجͮ͘ఏڙൣғͷݶք • ࣄۀձࣾͱҟͳΓɺ֤Ҋ֤݅νʔϜͰγεςϜ͕ҟͳΔ • "84͚ͩͰͳ͘(PPHMF$MPVE"[VSFͷҊ݅΋ͦͦ͜͜ 
 ˠ5FSSBGPSNͳͲͷशख़ͱϝϯςφϯεͷඞཁੑ͕ٻΊΒΕΔ •

    ϓϥοτϑΥʔϜνʔϜͷݶք • ΧόʔͰ͖Δٕज़ྖҬ͕ݶΒΕͯ͠·͏ 
 ˠʮࢧԉͰ͖Δ΋ͷʯͱʮٻΊΒΕ͍ͯΔ΋ͷʯͷΞϯϚον • πʔϧ૿ՃʹΑΔϝϯςφϯε΍վળ͕Ͱ͖Δ࿑ྗͷෆ଍ • ϩʔίʔυΞϓϩʔν͕ద༻Ͱ͖ͳ͍έʔε͸ׂΓ੾Δ֮ޛ
  8. ·ͱΊ • 1MBUGPSN&OHJOFFSJOHͷऔΓ૊Έʹ͓͚Δϝϯςφϯε΍ 
 ೝ஌ෛՙͷ໰୊ʹରԠ͢ΔͨΊɺ"84ͷϩʔίʔυαʔϏεΛ׆༻ 
 ˠ4UFQ'VODUJPOTͱ*OGSBTUSVDUVSF$PNQPTFS • ʮLBHUPPMTʯͱͯ͠ηϧϑαʔϏεπʔϧΛల։ •

    ϚϧνΫϥ΢υ΍Ϧιʔεͷ໰୊ͳͲʹରॲ͢΂͘ 
 ʮLBHJTNʯͱͯ͠ΠϯφʔιʔεͷऔΓ૊Έ΋ਪਐ • ઌਓͷφϨοδͱίϛϡχςΟ͔Βֶͼɺ࣮ફ͢Δʂ