rekognition-collection-deployer
Provisions Amazon Rekognition face collections and detection pipelines: collection creation with KMS encryption (must be set at create time), face indexing (index-faces, FaceId, ExternalImageId), face search by image and by FaceId with similarity threshold tuning (80%+ for production), stream processor for video analysis (Kinesis shard-level parallelism), celebrity recognition, content moderation, text in image, label detection, PPE detection, custom labels model training and deployment, SNS notification for async jobs, KMS encryption, IAM roles, cost per image/video, rate limiting (TPS), and collection size limits. Emits a READY_TO_DEPLOY checklist. Triggers: create rekognition collection, index faces, search faces by image, face search similarity threshold, rekognition stream processor, celebrity recognition, content moderation, ppe detection, custom labels model training, rekognition kms encryption.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-24
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- rekognition-collection-deployer
- license
- Apache-2.0
- metadata
- { "tags": "aws, rekognition, face-collection, cloudops, deploy, ai-ml, provisioning, stream-processor, content-moderation, celebrity-recognition, custom-labels", "phase": "1", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "AI/ML", "version": "0.1.0", "keywords": "aws, rekognition, face collection, face search, cloudops, deploy, provisioning, stream processor, celebrity recognition, content moderation, label detection, custom labels, kms encryption", "task_type": "deploy", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Invoke when the user wants to create a Rekognition face collection, index faces, search faces by image or FaceId, set up a stream processor for video analysis, detect labels or text, run content moderation, detect PPE, train and deploy custom labels models, configure celebrity recognition, or integrate Rekognition with Kinesis, SNS, and KMS. Do NOT invoke for Amazon Textract, Amazon Transcribe, or Amazon Comprehend — those are separate services.", "dependencies": "aws-orchestrator", "requires_llm": "true", "verdict_shape": "READY_TO_DEPLOY | PREREQUISITES_MISSING", "lifecycle_status": "active", "supports_pipeline": "true" }
- description
- Provisions Amazon Rekognition face collections and detection pipelines: collection creation with KMS encryption (must be set at create time), face indexing (index-faces, FaceId, ExternalImageId), face search by image and by FaceId with similarity threshold tuning (80%+ for production), stream processor for video analysis (Kinesis shard-level parallelism), celebrity recognition, content moderation, text in image, label detection, PPE detection, custom labels model training and deployment, SNS notification for async jobs, KMS encryption, IAM roles, cost per image/video, rate limiting (TPS), and collection size limits. Emits a READY_TO_DEPLOY checklist. Triggers: create rekognition collection, index faces, search faces by image, face search similarity threshold, rekognition stream processor, celebrity recognition, content moderation, ppe detection, custom labels model training, rekognition kms encryption.
- compatibility
- Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with rekognition access. Works with Terraform aws_rekognition_collection / aws_rekognition_stream_processor resources and CloudFormation AWS::Rekognition::Collection templates.
02 资源文件 20
- 参考文档eval/test-cases.yaml5.5 KB
- 参考文档evals/baselines/custom-labels-lifecycle.md602 B
- 参考文档evals/baselines/kms-collection-face-index.md761 B
- 参考文档evals/baselines/missing-kms-key.md626 B
- 参考文档evals/baselines/moderation-and-labels-pipeline.md690 B
- 参考文档evals/baselines/stream-processor-kinesis.md749 B
- 参考文档evals/eval_config.yaml1.7 KB
- 参考文档evals/evals.json9.5 KB
- 参考文档evals/prompts/custom-labels-lifecycle.md538 B
- 参考文档evals/prompts/kms-collection-face-index.md558 B
- 参考文档evals/prompts/missing-kms-key.md399 B
- 参考文档evals/prompts/moderation-and-labels-pipeline.md603 B
- 参考文档evals/prompts/stream-processor-kinesis.md584 B
- 参考文档examples/README.md5.9 KB
- 参考文档references/advanced-patterns.md6.2 KB
- 参考文档references/diagnostic-commands.md571 B
- 参考文档references/error-handling.md1.2 KB
- 参考文档references/face-search-and-threshold.md5.3 KB
- 参考文档references/stream-processor-and-async.md7.9 KB
- 参考文档skill.usf.yaml4.4 KB
03 SKILL.md 正文
Rekognition Collection Deployer
An AWS CloudOps agent skill that provisions Amazon Rekognition face collections and detection pipelines with correct defaults. The skill walks the operator through collection creation, face indexing, face search with similarity threshold tuning, stream processor configuration, content moderation, label and text detection, PPE detection, celebrity recognition, custom labels model training, KMS encryption, IAM roles, SNS notifications, cost and rate limit considerations, and collection size limits — captures detection requirements, explains why each default matters, and emits a READY_TO_DEPLOY checklist with copy-pasteable verification commands.
Activation keywords
create Rekognition collection, index faces, search faces by image, face search similarity threshold, Rekognition stream processor, celebrity recognition, content moderation, text in image detection, label detection, PPE detection, custom labels model training, Rekognition KMS encryption.
STRICT output contract
When this skill is invoked with a Rekognition-provisioning request,
the agent MUST respond with the READY_TO_DEPLOY checklist defined in the
"Output format" section using the literal all-caps labels
REKOGNITION:, VERDICT:, CHECKLIST:, and
VERIFICATION_COMMANDS:. Do NOT preface the checklist with prose,
headings, or disclaimers — emit the block as the first lines of the
response. This contract is what assertion-based evals and downstream
provisioning pipelines rely on; deviating from the literal labels breaks
automation silently.
If any prerequisite is missing, the verdict is PREREQUISITES_MISSING
with a specific gap citation in the checklist (marked [✗]), and
READY_TO_DEPLOY MUST NOT also appear.
Quick navigation
| Section | When to read |
|---|---|
| Prerequisites | Always — verify before provisioning |
| Step 1 — Collection creation and size limits | Core collection model |
| Step 2 — Face indexing (FaceId generation) | Indexing faces |
| Step 3 — Face search by image and by FaceId | Face matching |
| Step 4 — Similarity threshold tuning | Production face matching |
| Step 5 — Stream processor for video analysis | Kinesis video integration |
| Step 6 — Celebrity recognition and moderation | Detection features |
| Step 7 — Label, text, and PPE detection | Scene/safety analysis |
| Step 8 — Custom labels model lifecycle | Custom model training |
| Step 9 — KMS encryption and IAM roles | Security |
| Step 10 — SNS, cost, and rate limiting | Async, economics, TPS |
| NEVER do these things | Review before signing off |
| Output format | The literal checklist template |
| references/face-search-and-threshold.md | Face search + threshold detail |
| references/stream-processor-and-async.md | Stream processor + async detail |
Mindset
One-line takeaway: A Rekognition collection is a managed face vector store. You create it, index faces into it (each face gets a FaceId), and search by image or FaceId. The similarity threshold determines match strictness — 80%+ is production-grade. For video analysis, the stream processor reads from a Kinesis stream and writes face matches to another stream with shard-level parallelism.
Three misconceptions dominate Rekognition misdesign at provisioning time:
Moved to references/advanced-patterns.md. Three provisioning misconceptions: default threshold, infinite collection scaling, self-scaling stream processor.
Configuration dependency graph (novel heuristic)
Moved to references/advanced-patterns.md. Dependency table plus the KMS-at-creation trap and cross-dependency gotchas.
Expert heuristic: similarity threshold 80%+ for face matching
Moved to references/advanced-patterns.md. Threshold guide by use case and collection size; threshold must rise as the collection grows.
Expert heuristic: stream processor shard-level parallelism
Moved to references/advanced-patterns.md. Input shard count is the only throughput lever; typical production shard counts.
Expert heuristic: collection face count scaling
Moved to references/advanced-patterns.md. Collection size decision tree; partition above 10M faces and by data residency.
Prerequisites (verify before provisioning)
| Prerequisite | Why it matters | How to verify |
|---|---|---|
| AWS region supports Rekognition | Not all regions support all features | Check service availability |
| KMS key (if encryption required) | KMS must be set at creation | aws kms describe-key --key-id <key-id> |
| IAM role for stream processor | Needs Kinesis read + write + Rekognition search | Verify role permissions |
| Kinesis input/output streams | Stream processor reads/writes Kinesis | aws kinesis describe-stream |
| S3 bucket for images/video | Index and async operations read from S3 | aws s3 ls s3://<bucket> |
| SNS topic (if async notifications) | Async jobs send completion to SNS | aws sns get-topic-attributes |
| Collection size estimate | Affects threshold and partitioning decisions | Estimate face count |
If any prerequisite is missing, output VERDICT: PREREQUISITES_MISSING
and cite the specific gap.
Step 1 — Collection creation and size limits
A Rekognition collection is a managed vector index of face feature vectors. Each collection can hold up to 50 million faces.
# Create a collection (no encryption)
aws rekognition create-collection \
--collection-id "employee-faces" --region us-east-1
# Create a collection WITH KMS encryption (MUST be set at creation)
aws rekognition create-collection \
--collection-id "employee-faces" \
--kms-key-id arn:aws:kms:us-east-1:123456789012:key/abcd-1234 \
--region us-east-1
Critical: KMS encryption CANNOT be added after creation.
| Limit | Value |
|---|---|
| Max faces per collection | 50,000,000 |
| Face image max size | 5 MB (JPEG/PNG) |
| Face image min size | 80x80 pixels |
Step 2 — Face indexing (FaceId generation)
Indexing adds faces to the collection. Each indexed face gets a unique server-generated FaceId.
aws rekognition index-faces \
--collection-id "employee-faces" \
--image '{"S3Object":{"Bucket":"my-face-bucket","Name":"emp-001.jpg"}}' \
--external-image-id "employee-001" \
--max-faces 1 \
--quality-filter "AUTO" \
--region us-east-1
Key parameters:
--external-image-id: Maps FaceId to external identifier (employee ID). Recommended for traceability.--max-faces: Limits faces indexed per image. Set to 1 for single-person photos.--quality-filter:AUTO(recommended) filters low-quality faces.
Common mistake: indexing without --external-image-id — FaceIds
become opaque UUIDs with no human-readable mapping.
Step 3 — Face search by image and by FaceId
Search by image:
aws rekognition search-faces-by-image \
--collection-id "employee-faces" \
--image '{"S3Object":{"Bucket":"my-bucket","Name":"query.jpg"}}' \
--face-match-threshold 80 \
--max-faces 5 --region us-east-1
Search by FaceId (find duplicates):
aws rekognition search-faces \
--collection-id "employee-faces" \
--face-id "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" \
--face-match-threshold 80 \
--max-faces 5 --region us-east-1
Response includes FaceMatches with Similarity (0-100) and
ExternalImageId.
Step 4 — Similarity threshold tuning
| Threshold | Use case | False positive | False negative |
|---|---|---|---|
| 99%+ | Identity verification | Very low | High |
| 90-99% | Badge/access control | Low | Low |
| 80-90% | Production matching (recommended) | Moderate | Low |
| 60-80% | Human-in-the-loop review | High | Very low |
| <60% | NOT recommended | Very high | Near zero |
Production recommendation: start at 80%, monitor false positives, increase to 85-90% if collection exceeds 100k faces.
Step 5 — Stream processor for video analysis
The stream processor reads frames from a Kinesis data stream, searches against a collection, and writes matches to a Kinesis output stream.
aws rekognition create-stream-processor \
--name "camera-feed-processor" \
--input '{"KinesisStream":{"Arn":"arn:aws:kinesis:us-east-1:123456789012:stream/rekognition-input"}}' \
--output '{"KinesisStream":{"Arn":"arn:aws:kinesis:us-east-1:123456789012:stream/rekognition-output"}}' \
--role-arn "arn:aws:iam::123456789012:role/RekognitionStreamProcessorRole" \
--settings '{"FaceSearch":{"CollectionId":"employee-faces","FaceMatchThreshold":85.0}}' \
--region us-east-1
Start and monitor:
Moved to references/diagnostic-commands.md. start-stream-processor and describe-stream-processor commands.
Stream processor IAM role MUST have all three permissions:
| Permission | Resource |
|---|---|
kinesis:GetRecords, kinesis:GetShardIterator |
Input stream |
kinesis:PutRecord, kinesis:PutRecords |
Output stream |
rekognition:SearchFaces, rekognition:SearchFacesByImage |
Collection |
Missing any of the three causes silent failures.
Step 6 — Celebrity recognition and moderation
Celebrity recognition (uses built-in celebrity index, no collection):
aws rekognition recognize-celebrities \
--image '{"S3Object":{"Bucket":"my-bucket","Name":"event.jpg"}}' \
--region us-east-1
Content moderation (sync):
aws rekognition detect-moderation-labels \
--image '{"S3Object":{"Bucket":"my-bucket","Name":"user-upload.jpg"}}' \
--min-confidence 60 --region us-east-1
Content moderation (async video with SNS):
JOB_ID=$(aws rekognition start-content-moderation \
--video '{"S3Object":{"Bucket":"my-bucket","Name":"video.mp4"}}' \
--min-confidence 60 \
--notification-channel '{"SNSTopicArn":"arn:aws:sns:us-east-1:123456789012:rekognition-complete","RoleArn":"arn:aws:iam::123456789012:role/RekognitionSNSRole"}' \
--region us-east-1 --query 'JobId' --output text)
aws rekognition get-content-moderation \
--job-id "$JOB_ID" --region us-east-1
Step 7 — Label, text, and PPE detection
Label detection:
aws rekognition detect-labels \
--image '{"S3Object":{"Bucket":"my-bucket","Name":"photo.jpg"}}' \
--max-labels 50 --min-confidence 75 --region us-east-1
Text detection:
aws rekognition detect-text \
--image '{"S3Object":{"Bucket":"my-bucket","Name":"signage.jpg"}}' \
--region us-east-1
PPE detection:
aws rekognition detect-protective-equipment \
--image '{"S3Object":{"Bucket":"my-bucket","Name":"worksite.jpg"}}' \
--required-equipment-types '["FACE_COVER","HAND_COVER","HEAD_COVER"]' \
--region us-east-1
Response includes Persons with BodyParts, EquipmentDetections,
and CoversBodyPart boolean.
Step 8 — Custom labels model lifecycle
Custom labels train a model on your specific images (industrial defects, product logos, etc.).
# 1. Create project
aws rekognition create-project --project-name "industrial-defects" --region us-east-1
# 2. Create dataset and train model
aws rekognition create-project-version \
--project-arn "<project-arn>" \
--version-name "v1" \
--output-config '{"S3Bucket":"my-bucket","S3KeyPrefix":"model-output/"}' \
--training-data '{"Assets":[{"GroundTruthManifest":{"S3Object":{"Bucket":"my-bucket","Name":"training/manifest.json"}}}]}' \
--testing-data '{"AutoCreate":true}' \
--region us-east-1
# 3. Start model (inference) — charges hourly while RUNNING
aws rekognition start-project-version \
--project-version-arn "<version-arn>" \
--min-inference-units 1 --region us-east-1
# 4. STOP model when not in use (avoid idle charges)
aws rekognition stop-project-version \
--project-version-arn "<version-arn>" --region us-east-1
Critical: custom labels models incur hourly charges while RUNNING (~$4.00/hr per inference unit). Always stop when not in use.
Step 9 — KMS encryption and IAM roles
KMS encryption for collections MUST be configured at creation time. The KMS key policy must allow the Rekognition service principal:
{
"Effect": "Allow",
"Principal": { "Service": "rekognition.amazonaws.com" },
"Action": ["kms:Decrypt", "kms:GenerateDataKey"],
"Resource": "*"
}
General Rekognition IAM role permissions:
{
"Effect": "Allow",
"Action": [
"rekognition:CreateCollection", "rekognition:DescribeCollection",
"rekognition:IndexFaces", "rekognition:SearchFaces",
"rekognition:SearchFacesByImage", "rekognition:ListFaces",
"rekognition:DetectLabels", "rekognition:DetectText",
"rekognition:DetectModerationLabels",
"rekognition:DetectProtectiveEquipment",
"rekognition:RecognizeCelebrities"
],
"Resource": "*"
}
Step 10 — SNS notifications, cost, and rate limiting
SNS for async jobs
Async operations (Start*) support SNS notification on completion. Sync operations (Detect*, Search*) do NOT support SNS.
Cost summary
| Operation | Pricing (us-east-1) | Notes |
|---|---|---|
| IndexFaces / SearchFacesByImage | ~$0.001 per face/image | First 1M tiered |
| DetectLabels / DetectModerationLabels | ~$0.001 per image | First 1M tiered |
| Stream processor | ~$0.107 per minute | Billed while RUNNING |
| Custom labels (training) | ~$1.00 per hour | Billed while training |
| Custom labels (inference) | ~$4.00 per hour per unit | Billed while model RUNNING |
Custom labels cost trap: the model charges per hour while RUNNING, not per inference. Stop when not in use.
Moved to references/error-handling.md. Index and search share TPS quotas; use exponential backoff on ThrottlingException.
NEVER do these things
-
NEVER create a collection without KMS encryption if compliance requires it. KMS cannot be added after creation. Specify
--kms-key-idatcreate-collectiontime. -
NEVER use a similarity threshold below 80% for production face matching. False positive rates increase significantly below 80%, especially as collection size grows.
-
NEVER assume the stream processor scales itself. Throughput is determined by the input Kinesis stream's shard count. Scale shards to scale throughput.
-
NEVER leave a custom labels model running when not in use. Models incur hourly charges while running. Always
stop-project-versionwhen done. -
NEVER index faces without
--external-image-id. Without it, FaceIds are opaque UUIDs with no human-readable mapping. -
NEVER assume SNS notifications work with synchronous operations. SNS only works with async (Start*) operations, not sync (Detect*, Search*).
-
NEVER forget that index and search share TPS quotas. Heavy indexing throttles search. Schedule bulk indexing off-peak.
-
NEVER create a stream processor without verifying all three IAM permissions. The role needs Kinesis read on input, Kinesis write on output, AND Rekognition search on the collection.
-
NEVER assume search latency is constant as faces grow. At 1M+ faces, consider partitioning into multiple collections.
-
NEVER use Rekognition without exponential backoff on ThrottlingException. Without backoff, batch operations will fail.
Output format
REKOGNITION: <collection-id> (<collection-arn>)
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓|✗] Collection: <collection-id> — created | existing
[✓|✗] KMS encryption: enabled (<key-id>) | disabled
[✓|✗] Face indexing: <count> faces, ExternalImageId=<yes|no>
[✓|✗] Face search threshold: <threshold>% (80%+ recommended)
[✓|✗] Collection size: <count>/<limit> faces
[✓|✗] Stream processor: <name> — <status> (input shards: <count>)
[✓|✗] Input Kinesis stream: <stream-name> (<shard-count> shards)
[✓|✗] Output Kinesis stream: <stream-name> (<shard-count> shards)
[✓|✗] Stream processor IAM role: <role-arn>
[✓|✗] Content moderation: <enabled|disabled> (min confidence: <value>%)
[✓|✗] Label detection: <enabled|disabled> (max labels: <count>)
[✓|✗] Text detection: <enabled|disabled>
[✓|✗] PPE detection: <enabled|disabled>
[✓|✗] Celebrity recognition: <enabled|disabled>
[✓|✗] Custom labels: <project>/<version> — <status>
[✓|✗] SNS topic (async): <topic-arn>
[✓|✗] Tags: <key=value list>
VERIFICATION_COMMANDS:
aws rekognition describe-collection --collection-id <collection-id> --region <region>
aws rekognition list-faces --collection-id <collection-id> --region <region>
aws rekognition describe-stream-processor --name <processor-name> --region <region>
Worked example — face collection with stream processor
REKOGNITION: employee-faces (arn:aws:rekognition:us-east-1:123456789012:collection/employee-faces)
VERDICT: READY_TO_DEPLOY
CHECKLIST:
[✓] Collection: employee-faces — created
[✓] KMS encryption: enabled (arn:aws:kms:us-east-1:123456789012:key/abcd-1234)
[✓] Face indexing: 50000 faces, ExternalImageId=yes
[✓] Face search threshold: 85% (80%+ recommended)
[✓] Collection size: 50000/50000000 faces
[✓] Stream processor: camera-feed-processor — RUNNING (input shards: 4)
[✓] Input Kinesis stream: rekognition-input (4 shards)
[✓] Output Kinesis stream: rekognition-output (2 shards)
[✓] Stream processor IAM role: arn:aws:iam::123456789012:role/RekognitionStreamProcessorRole
[✓] Content moderation: enabled (min confidence: 60%)
[✓] Label detection: disabled
[✓] Text detection: disabled
[✓] PPE detection: disabled
[✓] Celebrity recognition: disabled
[✓] Custom labels: N/A
[✓] SNS topic (async): arn:aws:sns:us-east-1:123456789012:rekognition-complete
[✓] Tags: Environment=production, UseCase=employee-access
VERIFICATION_COMMANDS:
aws rekognition describe-collection --collection-id employee-faces --region us-east-1
aws rekognition list-faces --collection-id employee-faces --region us-east-1
aws rekognition describe-stream-processor --name camera-feed-processor --region us-east-1
Error handling
Moved to references/error-handling.md. Symptom-by-symptom fixes: existing collection, KMS denied, processor start, throttling, match quality, model cost.
References (load on demand)
- advanced-patterns — misconceptions, dependency graph, expert-heuristics deep dives
- diagnostic-commands — stream processor start and monitor commands
- error-handling — symptom-by-symptom troubleshooting and rate limiting
- face-search-and-threshold — face search + threshold detail (existing)
- stream-processor-and-async — stream processor + async detail (existing)
Domain
AWS CloudOps / Amazon Rekognition Face Collection & Detection Pipeline Provisioning.
AWS documentation
- Rekognition Developer Guide — https://docs.aws.amazon.com/rekognition/latest/dg/what-is.html
- Collections — https://docs.aws.amazon.com/rekognition/latest/dg/collections.html
- Searching faces — https://docs.aws.amazon.com/rekognition/latest/dg/search-faces.html
- Stream processor — https://docs.aws.amazon.com/rekognition/latest/dg/streaming-video.html
- Content moderation — https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html
- Custom labels — https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/cu-what-is-custom-labels.html
- Pricing — https://aws.amazon.com/rekognition/pricing/
04 同仓库更多 Skills
xray-tracing-deployer
Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL / method / service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry / ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS / EKS / Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.
wellarchitected-workload-auditor
Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.
wellarchitected-review-operator
Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer / get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.
wafv2-web-acl-deployer
Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB/API Gateway/CloudFront, or configuring CAPTCHA/Challenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.
wafv2-web-acl-auditor
Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow/bypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.
waf-rule-deployer
Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.