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
AWS初心者が苦労してCDKカスタムリソースを作った話 / AWS beginners str...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
yayoi_dd
March 28, 2024
Technology
2.9k
1
Share
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
More Decks by yayoi_dd
See All by yayoi_dd
AWS re:Invent 2025 参加報告 / AWS re:Invent 2025 Participation Report
yayoi_dd
0
10
re:Inventの学びを最大化するためにしたこと / What I Did to Maximize Learning at re:Invent
yayoi_dd
0
11
Werner Vogelsが語った”T型人材” / "T-Shaped Talent" as Discussed by Werner Vogels
yayoi_dd
0
11
AI駆動開発のさらにその先へ / Beyond AI-Driven Development
yayoi_dd
0
13
AWS DevOps Agentで見えた運用の未来 / The Future of Operations with AWS DevOps Agent
yayoi_dd
0
11
OpenSearch Warm Tier設計の実践 / Practical Implementation of OpenSearch Warm Tier Design
yayoi_dd
0
31
なぜ私たちは「生成AI-LT大会」を終了するのか / Why we are ending the Generative AI-LT competition
yayoi_dd
0
64
AIと働く / Working with AI
yayoi_dd
0
68
AIで未経験タスクの心理的ハードルが下がった話 / How AI has lowered the psychological barrier to unfamiliar tasks
yayoi_dd
0
45
Other Decks in Technology
See All in Technology
ASTのGitHub CopilotとCopilot CLIの現在地をお話しします/How AST Operates GitHub Copilot and Copilot CLI
aeonpeople
1
210
OpenClaw初心者向けセミナー / OpenClaw Beginner Seminar
cmhiranofumio
0
360
あるアーキテクチャ決定と その結果/architecture-decision-and-its-result
hanhan1978
2
550
Podcast配信で広がったアウトプットの輪~70人と音声発信してきた7年間~/outputconf_01
fortegp05
0
240
AI前提とはどういうことか
daisuketakeda
0
160
New CBs New Challenges
ysuzuki
1
160
システムは「動く」だけでは足りない 実装編 - 非機能要件・分散システム・トレードオフをコードで見る
nwiizo
1
190
英語翻訳を通じて 音声AIエージェント入門してみた
shichijoyuhi
0
110
LLM とプロンプトエンジニアリング/チューターを定義する / LLMs and Prompt Engineering, and Defining Tutors
ks91
PRO
0
310
I ran an automated simulation of fake news spread using OpenClaw.
zzzzico
1
1k
20260410 - CNTUG meetup #72 - DiskImage Builder 介紹:以 Kubespray CI 打造 RockyLinux 10 Cloud Image 為例
tico88612
0
110
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
Featured
See All Featured
Believing is Seeing
oripsolob
1
110
Leo the Paperboy
mayatellez
6
1.6k
Bash Introduction
62gerente
615
210k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
260
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
We Have a Design System, Now What?
morganepeng
55
8.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
470
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
340
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
220
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非対応のリソースも コードで管理できる ▪ 保守性が低いので使いどころは考えたほうがいい ▪ 初心者にとっては良いことも悪いことも多い