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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
400
広告の効果検証を題材にした因果推論の精度検証について
zozotech
PRO
0
210
Context Engineeringの取り組み
nutslove
0
380
AIエージェントに必要なのはデータではなく文脈だった/ai-agent-context-graph-mybest
jonnojun
1
240
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
480
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
2
3.1k
SREじゃなかった僕らがenablingを通じて「SRE実践者」になるまでのリアル / SRE Kaigi 2026
aeonpeople
6
2.5k
Why Organizations Fail: ノーベル経済学賞「国家はなぜ衰退するのか」から考えるアジャイル組織論
kawaguti
PRO
1
190
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
1
170
2026年、サーバーレスの現在地 -「制約と戦う技術」から「当たり前の実行基盤」へ- /serverless2026
slsops
2
270
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
150
Greatest Disaster Hits in Web Performance
guaca
0
290
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
67
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
65
Evolving SEO for Evolving Search Engines
ryanjones
0
130
Building the Perfect Custom Keyboard
takai
2
690
The browser strikes back
jonoalderson
0
410
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
Scaling GitHub
holman
464
140k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
The Curse of the Amulet
leimatthew05
1
8.7k
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. ◼ スタックは分けない方が良い
◆ 分けるメリットがあるのは間違いない ◆ 分けることによるデメリットが大きすぎる ◼ 先人の言うことには従った方が良い ◆ 知見のある人に頼るなど ◆ 自分たちで判断した方が良いケースもあるので難しいが…… 結論