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
30万人の同時アクセスに耐えたい!新サービスの盤石なリリースを支える負荷試験 / SRE Kaigi 2026
genda
4
1.4k
[CV勉強会@関東 World Model 読み会] Orbis: Overcoming Challenges of Long-Horizon Prediction in Driving World Models (Mousakhan+, NeurIPS 2025)
abemii
0
150
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
150
(技術的には)社内システムもOKなブラウザエージェントを作ってみた!
har1101
0
330
制約が導く迷わない設計 〜 信頼性と運用性を両立するマイナンバー管理システムの実践 〜
bwkw
3
1.1k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
猫でもわかるKiro CLI(セキュリティ編)
kentapapa
0
120
22nd ACRi Webinar - NTT Kawahara-san's slide
nao_sumikawa
0
110
Oracle Cloud Observability and Management Platform - OCI 運用監視サービス概要 -
oracle4engineer
PRO
2
14k
ECS障害を例に学ぶ、インシデント対応に備えたAIエージェントの育て方 / How to develop AI agents for incident response with ECS outage
iselegant
4
430
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
93k
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
130
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Visualization
eitanlees
150
17k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
650
sira's awesome portfolio website redesign presentation
elsirapls
0
150
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Deep Space Network (abreviated)
tonyrice
0
66
Why Our Code Smells
bkeepers
PRO
340
58k
Site-Speed That Sticks
csswizardry
13
1.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
The Curious Case for Waylosing
cassininazir
0
240
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. ◼ スタックは分けない方が良い
◆ 分けるメリットがあるのは間違いない ◆ 分けることによるデメリットが大きすぎる ◼ 先人の言うことには従った方が良い ◆ 知見のある人に頼るなど ◆ 自分たちで判断した方が良いケースもあるので難しいが…… 結論