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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
watany
July 06, 2022
Programming
960
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
Transcript
14 slides
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
More Decks by watany
See All by watany
Easy Vibe Coding on your smartphone with Claude Projects
watany
3
290
僕のハーネスを紹介します
watany
8
2k
Let me introduce my harness.
watany
2
83
OSS as a Hono User
watany
2
200
仕様駆動開発の消費期限
watany
20
10k
AIエージェントがあれば技術書なんてすぐ書けるでしょ→無理でした
watany
7
1.9k
穢れた技術選定について
watany
22
9.1k
Alphaモジュール使っていいのかい!?いけないのかい!?どっちなんだいっ!?
watany
1
510
The Tyranny of Not Measuring
watany
5
570
Other Decks in Programming
See All in Programming
Crash Auto Pipelines
veronikapj
1
410
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
5.7k
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
210
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
160
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
240
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
180
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
4
4.4k
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
310
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
310
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.4k
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
420
Featured
See All Featured
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
350
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
2
520
Thoughts on Productivity
jonyablonski
76
5.5k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
630
Balancing Empowerment & Direction
lara
6
1.4k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
350
Building an army of robots
kneath
307
47k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
620
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
640