ai-governance
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands,…
Structured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront Functions, Firewall Manager multi-account enforcement, and IAM/IRSA patterns. Covers OAC, cache policies, security headers, managed rule groups, rate limiting, FMS FIRST/MIDDLE/LAST
> /plugin marketplace add nitinjain999/platform-skills > /plugin install platform-skills@platform-skills
How it fires
How this command gets triggered: by you, by Claude, or both.
/awsContext preview
What this command does when you run it.
Structured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront Functions, Firewall Manager multi-account enforcement, and IAM/IRSA patterns. Covers OAC, cache policies, security headers, managed rule groups, rate limiting, FMS FIRST/MIDDLE/LAST
name: aws description: Structured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront Functions, Firewall Manager multi-account enforcement, and IAM/IRSA patterns. Covers OAC, cache policies, security headers, managed rule groups, rate limiting, FMS FIRST/MIDDLE/LAST ownership model, and production-ready Terraform generation. argument-hint: "[cloudfront|waf|lambda-edge|multi-account|orgs|review|terraform] [description or code]" title: "AWS Command" sidebar_label: "aws" custom_edit_url: null
Structured guidance for AWS CloudFront, WAF, Lambda@Edge, and multi-account security patterns.
When invoked with no arguments, ask before proceeding:
**Q1 — Mode?**
What do you need? 1. cloudfront — distributions, OAC, cache policies, security headers, Lambda@Edge 2. waf — web ACLs, managed rule groups, rate limiting, false positive tuning 3. lambda-edge — CloudFront Functions vs Lambda@Edge, viewer/origin events 4. multi-account — Firewall Manager, cross-account OAC, FMS WAF enforcement 5. orgs — Organizations, SCPs, OU design, account vending, Control Tower 6. review — production-readiness review of CloudFront + WAF config 7. terraform — generate a Terraform module scaffold Enter 1–7 or mode name:
**Q2 — Context** (after mode selected):
---
Invoke with `/platform-skills:aws` followed by a mode, or describe your problem and the command will route automatically.
/platform-skills:aws cloudfront # CloudFront distributions, OAC, cache, security headers /platform-skills:aws waf # WAF web ACLs, managed rules, rate limiting /platform-skills:aws lambda-edge # Lambda@Edge and CloudFront Functions /platform-skills:aws multi-account # Firewall Manager, cross-account, Organizations /platform-skills:aws review # Production-readiness review of your config /platform-skills:aws terraform # Generate Terraform module scaffold
---
**Triggers:** distribution, CDN, OAC, cache behavior, price class, CNAME, SSL, geo restriction, origin, CloudFront
**Reference:** `references/aws-cloudfront.md`
Steps:
1. Identify the problem layer:
2. Check for the common footguns:
3. Provide: problem diagnosis, Terraform snippet, validation steps, rollback plan.
**Key Terraform resources:**
| Resource | Purpose | |---|---| | `aws_cloudfront_distribution` | The distribution | | `aws_cloudfront_origin_access_control` | OAC (replaces OAI) | | `aws_cloudfront_cache_policy` | Custom cache key and TTL | | `aws_cloudfront_origin_request_policy` | What to forward to origin | | `aws_cloudfront_response_headers_policy` | Security headers | | `aws_cloudfront_function` | CloudFront Function (JS, viewer events) | | `aws_cloudfront_realtime_log_config` | Real-time logs to Kinesis |
---
**Triggers:** WAF, web ACL, rule group, managed rules, rate limit, Bot Control, CAPTCHA, Challenge, IP set, geo block
**Reference:** `references/aws-waf.md`
Steps:
1. Confirm scope:
2. Classify the request:
3. Provide: exact rule block, priority placement, visibility config, logging config.
**Baseline rule groups (always include for CloudFront):**
# Priority 5 — IP reputation (free)
AWSManagedRulesAmazonIpReputationList
# Priority 10 — Core Rule Set (free)
AWSManagedRulesCommonRuleSet
# Priority 15 — Known bad inputs: Log4Shell, SSRF (free)
AWSManagedRulesKnownBadInputsRuleGroup
# Priority 30 — Rate limit: 2000 req/5min per IP
rate_based_statement { limit = 2000; aggregate_key_type = "IP" }**Paid additions (evaluate based on risk):**
---
**Triggers:** Lambda@Edge, CloudFront Functions, viewer-request, origin-request, edge function, A/B test, auth at edge, URL rewrite
**Reference:** `references/aws-cloudfront.md` → Lambda@Edge section
Decision — CloudFront Functions vs Lambda@Edge:
Need network calls? → Lambda@Edge (CloudFront Functi
A production-grade field handbook for platform, DevOps, SRE, and cloud engineers covering Kubernetes, Flux CD, Terraform, GitHub Actions, AWS, OPA/Rego, KEDA, Karpenter, supply chain security, Falco, observability, and more.
Repo: nitinjain999/platform-skills
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands,…
Generate, convert, and maintain animated GitHub-safe Markdown documents with animated SVG diagrams. Covers four SVG patterns (architecture flow, lifecycle…
AWS profile management for MCP servers — discover profiles across SSO, Granted, and assumed-role chains, check credential TTL, switch profiles across VS Code…
Azure identity (Workload Identity, OIDC, Entra ID), resource tagging, AKS platform patterns, RBAC scoping, and production-readiness review — with Terraform…
Design, run, and debug Chaos Engineering experiments on Kubernetes using Litmus Chaos v3 and Chaos Mesh v2. Covers fault injection (pod-delete, network-loss,…
Bootstrap Checkov on a developer laptop, run static or plan-level Terraform security scanning for AWS/Azure/GCP/EKS, resolve private GitHub modules via gh CLI,…