$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS初心者が苦労してCDKカスタムリソースを作った話 / AWS beginners str...
Search
yayoi_dd
March 28, 2024
Technology
1
2.8k
AWS初心者が苦労してCDKカスタムリソースを作った話 / AWS beginners struggled to create CDK custom resources
弥生株式会社 もくテク
インフラ構築、どうしてる? ~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
なぜ私たちは「生成AI-LT大会」を終了するのか / Why we are ending the Generative AI-LT competition
yayoi_dd
0
6
AIと働く / Working with AI
yayoi_dd
0
6
AIで未経験タスクの心理的ハードルが下がった話 / How AI has lowered the psychological barrier to unfamiliar tasks
yayoi_dd
0
5
品質くん~電話応対品質をAIで診断してる件~ / Quality-kun: Using AI to assess telephone response quality
yayoi_dd
0
4
20251218_AIを活用した開発生産性向上の全社的な取り組みの進め方について / How to proceed with company-wide initiatives to improve development productivity using AI
yayoi_dd
0
510
2025-12-18_AI駆動開発推進プロジェクト運営について / AIDD-Promotion project management
yayoi_dd
0
140
“お客さま視点”を手に入れろ!! / Get the Customer’s Perspective!!
yayoi_dd
0
120
プロジェクト改善、まずは“ネタ出しの文化”から / Improving Projects Starts with a Culture of Idea Generation
yayoi_dd
0
120
使いにくい仕様を改善した件 / How We Improved a Difficult-to-Use Feature
yayoi_dd
0
130
Other Decks in Technology
See All in Technology
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
230
mairuでつくるクレデンシャルレス開発環境 / Credential-less development environment using Mailru
mirakui
5
580
高度サイバー人材育成専科(後半)
nomizone
0
320
【U/Day Tokyo 2025】Cygames流 最新スマートフォンゲームの技術設計 〜『Shadowverse: Worlds Beyond』におけるアーキテクチャ再設計の挑戦~
cygames
PRO
2
1k
まだ間に合う! Agentic AI on AWSの現在地をやさしく一挙おさらい
minorun365
17
2k
Lookerで実現するセキュアな外部データ提供
zozotech
PRO
0
190
MariaDB Connector/C のcaching_sha2_passwordプラグインの仕様について
boro1234
0
990
AWS Security Agentの紹介/introducing-aws-security-agent
tomoki10
0
370
AI との良い付き合い方を僕らは誰も知らない
asei
0
200
ESXi のAIOps だ!2025冬
unnowataru
0
150
IAMユーザーゼロの運用は果たして可能なのか
yama3133
2
520
1人1サービス開発しているチームでのClaudeCodeの使い方
noayaoshiro
2
530
Featured
See All Featured
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.3k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
85
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
400
Accessibility Awareness
sabderemane
0
18
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Context Engineering - Making Every Token Count
addyosmani
9
540
Crafting Experiences
bethany
0
20
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
160
Designing Experiences People Love
moore
143
24k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
240
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
200
Transcript
AWS初心者が苦労して CDKカスタムリソース を作った話 弥生株式会社 岩佐
自己紹介 ▪ 岩佐 祐樹 ▪ 2021年1月1日中途入社 ▪ 会計Nextサブシステム開発チーム所属 ▪ 2023年6月頃からAWS、CDKを使い始める
カスタムリソースとは ▪ CloudFormationで非対応のリソースを作ることができる仕組み – CloudFormationでもできるしCDKでもできる ▪ 作られる実体はLambda Function – LambdaがAWS
SDKを実行して、リソースが作成される ▪ CDKが補完してくれている部分も自力で書く必要がある
作ったもの(一部) ▪ ECS(Fargate)の AutoScaling設定を作った ▪ MetricMathを使用して、 SQSキューに溜まった メッセージ数÷タスク数 =1タスク当たりの処理 可能件数になるように
ターゲット追跡でスケー リングする設定 ▪ 2023/12の時点でCLIでの 設定しか対応していな かった
良かったこと ▪ 環境差異やミスを無くせた – 手作業(しかもCLI)で設定しなければいけないものがコードで管理できる ようになった – 他のリソースと同じタイミングで作成できるようになった ▪ CDKのありがたみがわかった
– CDKが補完してくれている部分も気にする必要がある ▪ AWS SDKに少しだけ詳しくなった
悪かったこと ▪ 可読性が低くてメンテナンスしづらい ▪ カスタムリソースで作成したAWSリソースへのタグ付けは また別のカスタムリソースが必要になった ▪ 初心者には難しく、使いこなせていない – CDKが補完してくれていたところが多かった(のだろうという推測)
– AWS SDKで設定できることが多すぎて何が必要で何が不要かわからない
まとめ ▪ カスタムリソースを使うとCloudFormation非対応のリソースも コードで管理できる ▪ 保守性が低いので使いどころは考えたほうがいい ▪ 初心者にとっては良いことも悪いことも多い