Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
AWS Config Custom Rule、ノーコードでできるかな?
Search
watany
July 06, 2022
Programming
940
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
20
9.4k
AIエージェントがあれば技術書なんてすぐ書けるでしょ→無理でした
watany
7
1.5k
穢れた技術選定について
watany
22
8.7k
Alphaモジュール使っていいのかい!?いけないのかい!?どっちなんだいっ!?
watany
1
440
The Tyranny of Not Measuring
watany
5
490
新しいVibe Codingと”自走”について
watany
6
580
Equip GitHub Copilot CLI
watany
3
1.6k
SkillsをS3 Filesに置く時のあれこれ
watany
4
2.5k
App Runner最近使ってなかったのなんでだっけ
watany
1
170
Other Decks in Programming
See All in Programming
Security issues being discussed on Web Platforms
petamoriken
0
570
【DroidKaigi 2026】「アクセシビリティを利用するとき、 アクセシビリティもまたこちらを利用している」 〜マルウェアによる攻撃と防衛について〜
halunoyo
0
440
Webの地図
yosuke_furukawa
PRO
6
4k
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
5.8k
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
340
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
360
【高い買い物LT会】初任給で話題の国産フィジカルAIを買った話
akagami
PRO
0
140
Hono + Inertia + React で LP を構築した話
oukayuka
2
220
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
240
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
1
430
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
150
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
120
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Amusing Abliteration
ianozsvald
1
290
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
330
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
680
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
240
Embracing the Ebb and Flow
colly
88
5.2k
How to Think Like a Performance Engineer
csswizardry
28
2.8k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
380
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
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