Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS CDK ExpressモードとCI/CDの組み合わせ
Search
Satoshi Kaneyasu
July 08, 2026
Programming
16
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWS CDK ExpressモードとCI/CDの組み合わせ
Satoshi Kaneyasu
July 08, 2026
More Decks by Satoshi Kaneyasu
See All by Satoshi Kaneyasu
運用ダッシュボードの設計を誰も教えてくれないのだけどみなさんどうしてるんですか? - チームに監視するという文化を根付かせるための第一歩を踏みたい -
satoshi256kbyte
0
70
AWS CDK ExpressモードとCI/CDの組み合わせ
satoshi256kbyte
1
38
AWS re:Invent 2025の少し振り返り + DevOps AgentとBacklogを連携させてみた
satoshi256kbyte
3
220
Amazon_Cognito_で構築する_スケーラブルな_Web_アプリケーション__シングルページ_Web_アプリケーションに認証を組み込む
satoshi256kbyte
0
44
人間とAI、どちらが書いたコードもCI/CDでチェックしてみよう
satoshi256kbyte
0
45
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
290
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎
satoshi256kbyte
1
64
人間とAI、どちらが書いたコードもCICDでチェックしてみよう
satoshi256kbyte
1
93
はじめてのカスタムエージェント【GitHub Copilot Agent Mode編】
satoshi256kbyte
0
660
Other Decks in Programming
See All in Programming
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
200
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
2
1.3k
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
190
全PRの83%がAIレビューだけでマージできるようになった開発組織はその後どうなったか
athug
0
630
AIが無かった頃の素敵な出会いの話
codmoninc
1
280
AI時代に設計が 最大の生産性レバーになる 意図駆動開発とデータを消さない設計|Don't Delete Your Data or Your Intent — Design as the Deepest Lever in the AI Era
tomohisa
0
120
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
170
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
1
270
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
140
Claude Opus 4.6以後の受託開発エンジニアの変化(Claude Code開発ノウハウ大公開スペシャルbyクラスメソッド)
iidatakuma
1
900
OpenSpecのproposalにbrainstormingを持たせてみた
tigertora7571
1
150
AIエージェントで 変わるAndroid開発環境
takahirom
2
740
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
470
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Rails Girls Zürich Keynote
gr2m
96
14k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
400
Into the Great Unknown - MozCon
thekraken
41
2.6k
Embracing the Ebb and Flow
colly
88
5.1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
350
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
560
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.2k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.2k
Transcript
AWS CDK Expressモードと CI/CDの組み合わせ SATOSHI KANEYASU 2026/07
2 氏名:兼安 聡 所属:株式会社サーバーワークス アプリケーションサービス部 在住:広島(フルリモート) 担当:DevOps、技術支援、PM、SM SNS(X):@satoshi256kbyte • 2026
Japan AWS Ambassadors • 2024-26 Japan AWS Top Engineers • 2024-26 Japan AWS All Certifications Engineers • 2025-26 AWS Community Builders • 認定スクラムマスター • PMP Speaker Introduction
1. AWS CDK Express モードとは 2. 実測ベンチマーク結果 3. Express モードの使いどころ
4. AWS CDK Express モードと CI/CD パイプライン 目次
4 AWS CDK Express モードとは ⚫ 2026年6月末リリースの新機能 ⚫ スタック操作の完了判定を設定適用時点に前倒し ⚫
安定化チェックをバックグラウンドに移動させ、 デプロイ時間を最大4倍高速化 ⚫ テンプレート変更は一切不要 ⚫ 同じ CDK コードをフラグ違いで流すだけ # 通常モード cdk deploy --all # Express モード(追加するのは --express だけ) cdk deploy --all --express
5 ロールバックはデフォルト無効 ⚫ 失敗しても巻き戻さず、失敗した地点で止まる ⚫ 「新旧が混ざった中途半端な状態」で残る ⚫ 修正して再デプロイ → 巻き戻し待ちなしで続行
⚫ 開発イテレーション向けの思想
6 早速検証してみます ⚫ 検証環境 AWS CDK (TypeScript) CDK
CLI 2.1129.0 / aws-cdk-lib 2.260.0 cdk-nag / ESLint / Prettier / Jest 入り 3 回計測の平均で比較 ⚫ cdk deployコマンドが返ってくるまでの時間で計測 ⚫ 検証対象リソース カテゴリ サービス 公式ブログで効果大 SQS+DLQ、VPC内Lambda、SNS、SSM コンテナ Web 構成 ALB、ECS Fargate、RDS
7 検証結果 – サービス別 サービス 通常 Express 短縮率 Amazon SQS
+ DLQ 83秒 57秒 32% AWS Lambda with Amazon VPC 190秒 160秒 16% Amazon SNS / AWS Systems Manager (SSM) 17秒 16秒 0% Application Load Balancer 209秒 211秒 0% Amazon ECS on Fargate 403秒 94秒 77% Amazon RDS 454秒 435秒 4%
8 検証結果 – 全部入り サービス 通常 Express 短縮率 新規作成 451秒
455秒 ≒0% 一旦全部デプロイした後の差分デプロイ サービス 通常 Express 短縮率 Amazon SQS + DLQ 追加 183秒 70秒 62% 全部入りを新規デプロイした
9 AWS CDK Expressモードの使いどころ ⚫ 開発・検証環境での高速イテレーション ⚫ 初回デプロイ後の細かな変更の繰り返し ⚫ 本番環境にはまだ早い
ロールバック無効のリスク 完了 ≠ トラフィック準備完了
10 AWS CDK Express モードと CI/CD パイプライン パターン 仕組み 特徴
GitHub Actions Only GitHub Actions で直接 cdk deploy 最もシンプル AWS CodePipeline V2 Only AWS 内で完結 ブランチ別にパイプライン Hybrid GitHub Actions → S3 → AWS CodePipeline セキュリティ重視
11 GitHub Actions + AWS CodePipeline(Hybrid) パターン 仕組み 特徴 GitHub
Actions Only Actions で直接 cdk deploy 最もシンプル CodePipeline V2 Only AWS 内で完結 ブランチ別にパイプライン Hybrid Actions → S3 → CodePipeline セキュリティ重視 GitHub Actions側 # _trigger-pipeline.yml - run: zip -r source.zip . -x '.git/*' - run: aws s3 cp source.zip s3://$BUCKET/source/latest.zip - run: | aws codepipeline start-pipeline-execution \ --name $PIPELINE_NAME \ --variables \ name=prefix,value=${{ inputs.prefix }} \ name=express,value=${{ inputs.express }}
12 GitHub Actions + AWS CodePipeline(Hybrid) パターン 仕組み 特徴 GitHub
Actions Only Actions で直接 cdk deploy 最もシンプル CodePipeline V2 Only AWS 内で完結 ブランチ別にパイプライン Hybrid Actions → S3 → CodePipeline セキュリティ重視 AWS CodePipeline から呼ぶ AWS CodeBuildのbuildspec # buildspec(Pipeline Variables で mode を切り替え) if [ "$EXPRESS" = "true" ]; then EXPRESS_FLAG="--express" else EXPRESS_FLAG="" fi npx cdk deploy --all \ --app "npx ts-node bin/cicd-app.ts" \ -c prefix=$PREFIX \ --require-approval never $EXPRESS_FLAG
13 なぜ Hybrid という面倒な構成を取るのか? ⚫ GitHub Actions OIDC のリスク
GitHub Actions Only パターンでは、 OIDC ロールに CDK デプロイ権限 (CloudFormation, IAM, S3 等)を付与する → GitHub 側でトークンが漏洩した場合、 AWS アカウント全体に影響が及ぶ ⚫ 昨今の GitHub セキュリティ事故 2024: tj-actions/changed-files サプライチェーン攻撃 Actions の secrets が外部に流出 2025: GitHub Actions artifacts からの OIDC トークン漏洩 ワークフロー定義を改ざんされるリスクも 「GitHub を信頼境界の外に置く」設計が求められる
14 まとめ ⚫ AWS CDK Expressモードは開発プロセスの効率化に寄与すると思う ただし、スタックの構成により効果に差が出る 効果が実感しやすいのは更新差分の場合
⚫ 予算・スケジュールなどが許すなら、 セキュリティ的にはCIはGitHub Actions、 CDはAWS(というかデプロイ先のクラウド)で完結する方が望ましい
15 参考 ⚫ Accelerate your infrastructure deployments by up to
4x with AWS CloudFormation Express mode ⚫ サーバーワークスエンジニアブログ - 早速お試し、新機能のAWS CDK のExpressモードはどれぐらい速いのか? ⚫ 検証コード https://github.com/satoshi256kbyte/cdk-express-mode
None