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 Config Custom Rule、ノーコードでできるかな?
Search
watany
July 06, 2022
Programming
930
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWS Config Custom Rule、ノーコードでできるかな?
JAWS-UG 朝会 #35で登壇した内容です。
watany
July 06, 2022
More Decks by watany
See All by watany
穢れた技術選定について
watany
3
310
The Tyranny of Not Measuring
watany
5
370
新しいVibe Codingと”自走”について
watany
6
390
Equip GitHub Copilot CLI
watany
3
1.5k
SkillsをS3 Filesに置く時のあれこれ
watany
4
2.4k
App Runner最近使ってなかったのなんでだっけ
watany
1
120
CDK Deployのための ”反響定位”
watany
5
1.1k
ロボットのための工場に灯りは要らない
watany
12
3.7k
Agentic Coding 実践ワークショップ
watany
56
38k
Other Decks in Programming
See All in Programming
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
150
スマートグラスで並列バイブコーディング
hyshu
0
290
自作OSでスライド発表する
uyuki234
1
3.8k
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
580
関数型プログラミングのメリットって何だろう?
wanko_it
0
160
えっ!!コードを読まずに開発を!?
hananouchi
0
190
20260623_Loop Engineeringで自分の分身の問い合わせBotを作る
ryugen04
0
200
Creating Composable Callables in Contemporary C++
rollbear
0
200
ランチタイムLT会3周年!ランチタイムLT会を3年間続けられたお話
y0hgi
1
140
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
2.3k
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
110
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
150
Featured
See All Featured
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
Accessibility Awareness
sabderemane
1
150
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
190
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
360
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
410
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
How to Ace a Technical Interview
jacobian
281
24k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
210
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
Transcript
JAWS-UG 朝会 #35 AWS Config Custom Rule、ノーコードで書けるかな? 2022/07/06 NTTテクノクロス株式会社 渡邉洋平 1
自己紹介 渡邉 洋平(Twitter:@_watany) 所属:NTT テクノクロス デジタルツイン事業部 APN アドバンスドコンサルティングパートナー 2022 APN
ALL AWS Certifications Engineers + SAP on AWS - Specialty (New!) 今年から登壇始めました 朝なので明るいスライドで 2
今回話すこと 「ノーコードで書けるカスタムルールがあるらしい」 注:ノーコード= DSL を含む前提 ほんまや!(右図)神アプデじゃん!マジかよ!!!! ...盛り上がってるの私だけじゃない!? という訳で魅力を伝えに来ました。 3
おさらい AWS Config Custom Rules AWS Config AWS リソースの構成変更をロギングするサービス AWS
CLI のコマンド aws configure とは無関係 主要な機能 Config Recorder リソース設定の変更履歴を構成管理 Config Rule Recorder の内容がルールを守れているか評価 a. Managed Rules AWS 用意済のルールセット b. Custom Rules 利用者が定義するルールセット 今までの Lambda 以外に、Guard DSL で定義できる ←New! 4
つまり、こういうのが Python で 400Line 弱 Boilerplate が多すぎる 5
Guard DSL だと、こう ちなみに Guard DSL は AWS CloudFormation Guard
2.0 の記法 つい先日 Guard 2.1 へ AWS CloudFormation Guard 2.1 の一般提供が開始 https://aws.amazon.com/jp/abou t-aws/whats-new/2022/06/aws- cloudformation-guard-2-1- available/ 6
Custom Rules のつらかったところ 従来の Custom Rules は 実際のリソースは Lambda で実装
プログラミング言語でだいたい表現できる。 付与した IAM Role が付与でき、足りない情報は補完が可能。 自由度が高い反面、以下の課題が Lambda 特有のチューニング(e.g. timeout, Running Cost...) ソースや実行環境のメンテ(e.g. Runtime 追従, ライブラリ...) ちょっとパラメータの T/F 確認したいだけ。には重過ぎる。 Guard DSL で作成すれば(CustomPolicy)、コード含むリソース管理を深く考えずに、軽量な判定をスッと書 けそう。 7
ということでノーコードで CustomRule が簡単に作れ…… 8
ませんでした! 全然簡単ではない 9
課題 ドキュメントの少なさ サンプルの少なさ 事例の少なさ 10
つまり……? ドキュメントとサンプル、なければ作ればいい AWS Config Custom Policy Rules、完全に理解した https://zenn.dev/watany/articles/ 472889670b8f82 せっかくなので(?)
Zenn.dev デビュー しました。 11
ブログの tl;dr Guard を使えば、無理なく十数行で Custom Rules を表現できそう Config Recorder スキーマの理解は必要。
実は awslabs にある。(図) CDK(Cfn)対応していないのが地味にネック 12
本当に言いたいこと 軌道に乗ったらハッピー。立ち上げるまでは若干キツイ。 安易に作業見積もりを薄くすると割とつらい CFn 対応、サンプルの充実に期待! 13
Appendix 前述のブログを書き上げた 2 日後、AWS Blog が公開されました! Announcing AWS Config Custom
Rules using Guard Custom policy https://aws.amazon.com/jp/blogs/mt/announcing-aws-config-custom-rules-using-guard- custom-policy/ CustomPolicy のノウハウ、公式でも出てないぜ!って言おうと思ったのに。 14