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
先人の教えに背いてCDKのスタックを分割した男の末路 / The fate of the ma...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yayoi_dd
March 28, 2024
Technology
1
4.3k
先人の教えに背いてCDKのスタックを分割した男の末路 / The fate of the man who split the CDK stack
弥生株式会社 もくテク
インフラ構築、どうしてる? ~IaCの知見共有会~(2024/03/28)
https://mokuteku.connpass.com/event/311038/
yayoi_dd
March 28, 2024
Tweet
Share
More Decks by yayoi_dd
See All by yayoi_dd
OpenSearch Warm Tier設計の実践 / Practical Implementation of OpenSearch Warm Tier Design
yayoi_dd
0
2
なぜ私たちは「生成AI-LT大会」を終了するのか / Why we are ending the Generative AI-LT competition
yayoi_dd
0
45
AIと働く / Working with AI
yayoi_dd
0
52
AIで未経験タスクの心理的ハードルが下がった話 / How AI has lowered the psychological barrier to unfamiliar tasks
yayoi_dd
0
23
品質くん~電話応対品質をAIで診断してる件~ / Quality-kun: Using AI to assess telephone response quality
yayoi_dd
0
25
20251218_AIを活用した開発生産性向上の全社的な取り組みの進め方について / How to proceed with company-wide initiatives to improve development productivity using AI
yayoi_dd
0
890
2025-12-18_AI駆動開発推進プロジェクト運営について / AIDD-Promotion project management
yayoi_dd
0
190
“お客さま視点”を手に入れろ!! / Get the Customer’s Perspective!!
yayoi_dd
0
130
プロジェクト改善、まずは“ネタ出しの文化”から / Improving Projects Starts with a Culture of Idea Generation
yayoi_dd
0
130
Other Decks in Technology
See All in Technology
Amazon Bedrock Knowledge Basesチャンキング解説!
aoinoguchi
0
160
コミュニティが変えるキャリアの地平線:コロナ禍新卒入社のエンジニアがAWSコミュニティで見つけた成長の羅針盤
kentosuzuki
0
130
ECS障害を例に学ぶ、インシデント対応に備えたAIエージェントの育て方 / How to develop AI agents for incident response with ECS outage
iselegant
3
300
AIが実装する時代、人間は仕様と検証を設計する
gotalab555
1
220
Frontier Agents (Kiro autonomous agent / AWS Security Agent / AWS DevOps Agent) の紹介
msysh
3
190
Agent Skils
dip_tech
PRO
0
130
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
310
Agile Leadership Summit Keynote 2026
m_seki
1
670
20260204_Midosuji_Tech
takuyay0ne
1
160
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
190
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
260
AIエージェントに必要なのはデータではなく文脈だった/ai-agent-context-graph-mybest
jonnojun
1
240
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
290
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
52k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
120
Paper Plane (Part 1)
katiecoart
PRO
0
4.3k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
130
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
HDC tutorial
michielstock
1
390
So, you think you're a good person
axbom
PRO
2
1.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Transcript
田邊慎史 © 2024 Yayoi Co., Ltd. All rights reserved. 先人の教えに背いてstackを分割した男の
末路
© 2024 Yayoi Co., Ltd. All rights reserved. ◼ 新サービスはCDKでインフラ構築をすることに
◼ 「CDKは触ったことないから色々不安だな……」 ◼ 「早速導入のために調べてみよう!」 ◼ 「CDKにはstackという概念があるらしい……」 新サービス開発中のある日
© 2024 Yayoi Co., Ltd. All rights reserved. ◼ CloudFormationのテンプレートの塊
◆ 参照も可能 stackって? Stack A Stack B Stack C
© 2024 Yayoi Co., Ltd. All rights reserved. ◼ CDK
開発者ガイド ベストプラクティスより o 「通常、できるだけ多くのリソースを同じスタックに保持する方が簡単なの で、分離したいことがわかっている場合を除き、リソースをまとめておいて ください。」 ◼ CDK実践勉強会のQ&Aより o 「必要のない限りはスタックを分割しないことをおすすめします」 o 「最初は1つのスタックからはじめて、CloudFormation のリソース数制限な どで問題が発生しそうであれば分割を検討するくらいでも十分な場合も多い かと思います」 stackは分けない方が良いらしい……
© 2024 Yayoi Co., Ltd. All rights reserved. 本当かなあ? デプロイ
したい デプロイ したくない スタックを分けることで柔軟にデプロイ可能! Stack A Stack B Stack C
© 2024 Yayoi Co., Ltd. All rights reserved. あれ?デプロイできない VPCエンドポイント
用のSGを作成 VPCエンドポイン ト用のSGのイン バウンドルール でECSのアクセス を許可 スタック間参照のリソースは編集不可! Stack A Stack B Stack C
© 2024 Yayoi Co., Ltd. All rights reserved. あれ?更新できない Stack
A Stack B Stack C ECSの環境変数で参照し ていたSecrets Manager のSecretを削除 環境変数での Secretの参照を 削除 他スタックで参照しているものは削除できない!
© 2024 Yayoi Co., Ltd. All rights reserved. ◼ スタックは分けない方が良い
◆ 分けるメリットがあるのは間違いない ◆ 分けることによるデメリットが大きすぎる ◼ 先人の言うことには従った方が良い ◆ 知見のある人に頼るなど ◆ 自分たちで判断した方が良いケースもあるので難しいが…… 結論