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

生成 AI 時代の CI/CD

Avatar for Tomoki Suzuki Tomoki Suzuki
May 29, 2026
260

生成 AI 時代の CI/CD

Avatar for Tomoki Suzuki

Tomoki Suzuki

May 29, 2026

Transcript

  1. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2026, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. 品質ゲートをコードで定義し、 開発サイクルを加速させる Tomoki Suzuki Startup Solutions Architect ⽣成 AI 時代の CI/CD JAWS-UG 京都 2026
  2. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2026, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. ともぞん (Tomoki Suzuki) アマゾン ウェブサービス ジャパン合同会社 スタートアップ事業本部 ソリューションアーキテクト X: @tomozooooooonn 経歴 薬局向けのスタートアップで CTO 好きなAWSサービス DevOps Agent Zenn でブログも書きました︕ ⾃⼰紹介
  3. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 今⽇話すこと • ⽣成 AI 時代の DevOps の現状 • ⽣成 AI 時代に CI/CD どう作るか • AWS でどう実現するか
  4. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 今⽇話すこと • ⽣成 AI 時代の DevOps の現状 • ⽣成 AI 時代に CI/CD どう作るか • AWS でどう実現するか
  5. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. DevOps とは 開発と運⽤が協⼒して、ソフトウェアのデリバリーを⾼速に、 かつ安定して回し続けるためのプラクティス
  6. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. DevOps ライフサイクルと AI の浸透 AIの浸透により爆発的に加速
  7. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. DevOps ライフサイクルと AI の浸透 ボトルネックが移動 ・コードレビュー ・テスト設計 ・セキュリティ
  8. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. DevOps ライフサイクルと AI の浸透 ここを適当に進めると… ・障害多発 ・中⾝のわからないシステム ・セキュリティインシデント
  9. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. DevOps ライフサイクルと AI の浸透 ・怖くて開発できない… ・ビジネスの停滞
  10. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 速度の⾮対称が、品質の "⽳" になる DORA Accelerate State of DevOps 2025(Google) • AIで“個⼈の⽣産性”は2.1%上がるが “デリバリーの安定性”は7.2%下がる • AIは増幅器。基盤が弱いと “下流の詰まり”ごと増幅される • AIで⼤きなシステムを作成すると遅く 不安定なので⼩さなバッチ+ 堅牢な品質ゲートが鍵
  11. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 速度の⾮対称が、品質の "⽳" になる DORA Accelerate State of DevOps 2025(Google) • AIで“個⼈の⽣産性”は2.1%上がるが “デリバリーの安定性”は7.2%下がる • AIは増幅器。基盤が弱いと “下流の詰まり”ごと増幅される • AIで⼤きなシステムを作成すると遅く 不安定なので⼩さなバッチ+ 堅牢な品質ゲートが鍵 CI/CDを品質ゲートとして整える
  12. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 今⽇話すこと • ⽣成 AI 時代の DevOps の現状 • ⽣成 AI 時代に CI/CD どう作るか • AWS でどう実現するか
  13. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. ⽣成 AI 時代の CI/CD = 決定的なゲートで品質担保 Step 1 パイプラインを作る • ⼿動デプロイではヒュー マンエラーを引き起こす 危険性がある • AIにデプロイをさせると 予期せぬ副作⽤を起こす 危険性も • パイプラインが本番への 唯⼀の経路とすることで 信頼性を上げる Step 2 IaC 化する • ⼿動設定では「誰がいつ 何を変えたか」が追えな い • テストをスムーズにパイ プラインに統合できる • コーディングエージェン トのコンテキストに⼊れ ることができる Step 3 品質ゲートを⼊れる • AI が書いたコードは規約 を無視することがある • Claude.mdの制約も絶対 ではない • テストやLinterなどの品 質ゲートを最後の砦にす る
  14. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 品質ゲート : 何を⼊れるか Lint(ESLint) コード規約・危険なパターンを排除 検知 : console.log の残留(情報漏洩) 未使⽤変数・未使⽤ import ユニットテスト(Vitest) ロジックの正しさを検証 検知 : ロジックの抜けもれ コード変更による副作⽤ E2E テスト(Playwright) ユーザーフローの動作保証 検知 : ユーザー体験が損なわれていないか 全体フローの正しさ シークレット検出(gitleaks) 認証情報の漏洩防⽌ 検知 : API キー・トークンのハードコード .env ファイル等の誤コミット
  15. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 今⽇話すこと • ⽣成 AI 時代の DevOps の現状 • ⽣成 AI 時代に CI/CD どう作るか • AWS でどう実現するか
  16. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS でどう実現するか AWS CDK Developer CodeCommit CodePipeline 品質ゲート CodeBuild CodeDeploy ECS Lambda S3+CF デプロイ先
  17. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS でどう実現するか AWS CDK Developer CodeCommit CodePipeline 品質ゲート CodeBuild CodeDeploy デプロイ先 ECS Lambda S3+CF ソース管理 ・ AWSマネージドのGitリポジトリ ・ IAMで認証可能なためSSH鍵の管理が不要 ・ GitHub/GitLabもCodeStar Connections経由で接続可能
  18. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS でどう実現するか AWS CDK Developer CodeCommit CodePipeline CodeBuild CodeDeploy ECS Lambda S3+CF パイプライン(Step1) ・ Source → Build → Deploy のステージを定義し⾃動で順に実⾏ ・任意のステージで失敗すれば後続は実⾏されない ・トリガーフィルタ(ブランチ/ファイルパス指定)、Full Clone対応 デプロイ先 品質ゲート
  19. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS でどう実現するか AWS CDK Developer CodeCommit CodePipeline 品質ゲート CodeBuild CodeDeploy ECS Lambda S3+CF 品質ゲート(Step3) ・フルマネージドのビルド環境 ・buildspec.ymlにコマンドを並べるだけで実⾏される ・品質ゲートの実⾏環境: Lint → テスト → ビルド デプロイ先
  20. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS でどう実現するか AWS CDK Developer CodeCommit CodePipeline 品質ゲート CodeBuild CodeDeploy ECS Lambda S3+CF デプロイ⾃動化 ・デプロイ戦略: In-Place / Blue/Green / Canary / Linear ・EC2、ECS(Fargate含む)、Lambda、オンプレミス対応 ・ヘルスチェック+⾃動ロールバック対応 デプロイ先
  21. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS でどう実現するか AWS CDK Developer CodeCommit CodePipeline 品質ゲート CodeBuild CodeDeploy ECS Lambda S3+CF IaCフレームワーク(Step2) ・パイプライン・品質ゲート・配信基盤・IAM権限をすべてコードで定義 ・AI にコンテキストを渡しやすい デプロイ先
  22. © 2026, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 実際に作成してみよう︕