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
yayoi_dd
March 28, 2024
Technology
1
4.4k
先人の教えに背いて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
29
なぜ私たちは「生成AI-LT大会」を終了するのか / Why we are ending the Generative AI-LT competition
yayoi_dd
0
60
AIと働く / Working with AI
yayoi_dd
0
62
AIで未経験タスクの心理的ハードルが下がった話 / How AI has lowered the psychological barrier to unfamiliar tasks
yayoi_dd
0
39
品質くん~電話応対品質をAIで診断してる件~ / Quality-kun: Using AI to assess telephone response quality
yayoi_dd
0
39
20251218_AIを活用した開発生産性向上の全社的な取り組みの進め方について / How to proceed with company-wide initiatives to improve development productivity using AI
yayoi_dd
0
910
2025-12-18_AI駆動開発推進プロジェクト運営について / AIDD-Promotion project management
yayoi_dd
0
220
“お客さま視点”を手に入れろ!! / Get the Customer’s Perspective!!
yayoi_dd
0
140
プロジェクト改善、まずは“ネタ出しの文化”から / Improving Projects Starts with a Culture of Idea Generation
yayoi_dd
0
130
Other Decks in Technology
See All in Technology
TypeScript 7.0の現在地と備え方
uhyo
7
2k
生成AIで速度と品質を両立する、QAエンジニア・開発者連携のAI協調型テストプロセス
shota_kusaba
0
370
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
3
13k
新規事業×QAの挑戦:不確実性を乗りこなす!フェーズごとに求められるQAの役割変革
hacomono
PRO
0
160
How to install a gem
indirect
0
220
Visional 28新卒プロダクト職(エンジニア/デザイナー)向け 会社説明資料 / Visional Company Briefing for Newgrads 28
visional_engineering_and_design
1
110
DDD×仕様駆動で回す高品質開発のプロセス設計
littlehands
4
2k
頼れる Agentic AI を支える Datadog のオブザーバビリティ / Powering Reliable Agentic AI with Datadog Observability
aoto
PRO
0
250
Escape from Excel方眼紙 ~マークダウンで繋ぐ、人とAIの架け橋~ /nikkei-tech-talk44
nikkei_engineer_recruiting
0
170
Phase11_戦略的AI経営
overflowinc
0
1k
AI時代のオンプレ-クラウドキャリアチェンジ考
yuu0w0yuu
0
200
Goのerror型がシンプルであることの恩恵について理解する
yamatai1212
1
290
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
180
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
150
The Language of Interfaces
destraynor
162
26k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
840
GitHub's CSS Performance
jonrohan
1032
470k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
860
How STYLIGHT went responsive
nonsquared
100
6k
How to Think Like a Performance Engineer
csswizardry
28
2.5k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
160
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.2k
How to make the Groovebox
asonas
2
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. ◼ スタックは分けない方が良い
◆ 分けるメリットがあるのは間違いない ◆ 分けることによるデメリットが大きすぎる ◼ 先人の言うことには従った方が良い ◆ 知見のある人に頼るなど ◆ 自分たちで判断した方が良いケースもあるので難しいが…… 結論