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

TypeScripterに送るIaCの世界への招待〜AWS CDKと共に〜/inviting-...

TypeScripterに送るIaCの世界への招待〜AWS CDKと共に〜/inviting-typescripters-to-the-world-of-iac-with-aws-cdk

TSKaigi 2024 After Talkで話した内容です。
https://layerx.connpass.com/event/318123/

tomoki10

June 04, 2024
Tweet

More Decks by tomoki10

Other Decks in Technology

Transcript

  1. "84$%,ͱ͸  w࢖͍׳ΕͨݴޠͰ"84ϦιʔεΛ࡞੒Ͱ͖ΔπʔϧαʔϏε wݴޠ w5ZQF4DSJQU+BWB4DSJQU 1ZUIPO +BWB $ (PͰهड़Մೳ wಛ௃

    w"84Ϧιʔε΍Ұ෦4BB4੡඼Λந৅Խͯ͠ίʔυͰ؅ཧ w044ͳͷͰ࣮૷ͷৄࡉ΋ιʔεϨϕϧͰ֬ೝՄೳ "84$MPVE%FWFMPQNFOU,JU "84$%,
  2. $%,ͷछྨ  ͓͓·͔ʹछྨ͋Γ·͢ ʮcdk8s(+)Ͱ͸͡ΊΔKubernetesʯ https://speakerdeck.com/horsewin/cdk8s-plus-dehazimerukubernetes "84$%, $MPVE'PSNBUJPOςϯϓ ϨʔτͳͲΛੜ੒͠Ϋϥ΢υ Πϯϑϥ؀ڥΛίʔυ؅ཧ "84Ϧιʔε΍Ұ෦4BB4੡

    ඼Λந৅Խͯ͠؅ཧՄೳ 5FSSBGPSNςϯϓϨʔτΛੜ ੒͠ɺΫϥ΢υΠϯϑϥ؀ڥ Λίʔυ؅ཧ "84($"[VSF΍4BB4੡ ඼Λந৅Խͯ͠؅ཧՄೳ LTϚχϡϑΣετΛੜ੒ ͠ɺLT؀ڥΛखଓ͖ܕͷॻ ͖ํͰ؅ཧ LTΛ؅ཧՄೳ ※ʮTerraform ॳ৺ऀ͕ CDK for Terraform Λ৮ͬͯΈͨॴײʯ https://zenn.dev/mayforblue/articles/09574f95fdbf69 ˢࠓ೔͸͜͜ͷ࿩ʂ
  3. "84$%,ͷϢʔβ͔Βݟͨ֓ཁ  Client CI/CD Env Source code AWS CloudFormation AWS

    account OR AWS CDK AWS Lambda Amazon API Gateway Stack (Resource State) Generate $ cdk deploy
  4. "84$%,ͷཪଆͷجຊతͳಈ͖  Client CI/CD Env Source code OR AWS CDK

    const getItemFunction = new node_lambda.NodejsFunction(this, "getItem", { runtime: lambda.Runtime.NODEJS_20_X, entry: path.join(__dirname, "../../src/hoge/index.ts"), handler: "getItem", timeout: cdk.Duration.seconds(30), });
  5. "84$%,ͷཪଆͷجຊతͳಈ͖  Client CI/CD Env Source code OR AWS CDK

    Cfn Template 1.Synthesize Assets w"TTFUT wόϯυϧͰ͖ΔϩʔΧϧϑΝΠϧ΍σΟϨΫτ Ϧɺ%PDLFSΠϝʔδͳͲؚ͕·ΕΔ w-BNCEBͷίʔυ౳΋ؚΉ w $MPVE'PSNBUJPOςϯϓϨʔτ w $%,͕ੜ੒ͨ͠$MPVE'PSNBUJPOͷςϯϓ ϨʔτϑΝΠϧ
  6. "84$%,ͷཪଆͷجຊతͳಈ͖  Client CI/CD Env Source code AWS account OR

    AWS CDK Cfn Template 1.Synthesize S3 Bucket Assets 2.Upload
  7. "84$%,ͷཪଆͷجຊతͳಈ͖  Client CI/CD Env Source code AWS CloudFormation AWS

    account OR AWS CDK Cfn Template 1.Synthesize S3 Bucket Assets 2.Upload 3.Deploy
  8. "84$%,ͷཪଆͷجຊతͳಈ͖  Client CI/CD Env Source code AWS CloudFormation AWS

    account OR AWS CDK Cfn Template Cfn Template 1.Synthesize S3 Bucket Assets 2.Upload 3.Deploy 4.Pull
  9. "84$%,ͷཪଆͷجຊతͳಈ͖  Client CI/CD Env Source code AWS CloudFormation AWS

    account OR AWS CDK Cfn Template Stack (Resource State) Cfn Template 1.Synthesize S3 Bucket Assets 2.Upload 3.Deploy 5.Generate 4.Pull
  10. "84$%,ͷཪଆͷجຊతͳಈ͖  Client CI/CD Env Source code AWS CloudFormation AWS

    account OR AWS CDK Cfn Template Stack (Resource State) Cfn Template 1.Synthesize S3 Bucket Assets 2.Upload 3.Deploy 5.Generate AWS Lambda Amazon API Gateway 6.API Call 4.Pull