backup-vault-compliance-automator
Designs and implements AWS Backup vault compliance automation workflows. Enforces vault policies (deny non-encrypted backups), validates vault lock compliance (governance vs compliance mode), automates backup report generation (daily compliance summary), verifies recovery point encryption, audits backup plan coverage (identifies resources without backup plans), validates cross-region backup replication, checks backup frequency compliance (daily for production), enforces retention policy, manages Vault Lock cool-off periods, deploys multi-account compliance via AWS Organizations, and wires Config rules for continuous backup compliance detection. Emits AUTOMATION_DEPLOYED with deployment templates or REVIEW_REQUIRED with the specific gap. Use when enforcing backup vault security, auditing backup coverage, deploying Vault Lock, verifying cross-region replication, or building Config-based backup compliance monitoring.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-24
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- backup-vault-compliance-automator
- license
- Apache-2.0
- metadata
- { "tags": "aws-backup, vault-lock, backup-compliance, vault-policy, cross-region, config-rules, automate", "phase": "4", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Storage", "version": "0.1.0", "keywords": "AWS Backup, backup vault, vault lock, vault policy, backup compliance, recovery point encryption, backup plan coverage, cross-region backup, backup frequency, retention policy, governance mode, compliance mode, AWS Config rules, backup reports, multi-account backup, AWS Organizations, backup framework, cool-off period", "task_type": "automate", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Enforcing backup vault security policies, deploying Vault Lock (governance or compliance mode), auditing backup plan coverage across resources, verifying recovery point encryption, validating cross-region replication, checking backup frequency compliance, deploying Config rules for backup governance, automating backup compliance reports, or rolling out multi-account backup compliance via AWS Organizations.", "requires_llm": "true", "verdict_shape": "AUTOMATION_DEPLOYED | REVIEW_REQUIRED", "lifecycle_status": "active", "invocation_schema": "Input: either (a) a backup vault configuration (vault name, policy requirements, lock mode) plus target resources, OR (b) a backup compliance requirement (\"all production resources must have daily backups with 30-day retention\", \"verify all recovery points are encrypted\"). Output: deterministic COMPLIANCE block per vault — POLICY/LOCK/COVERAGE/REPLICATION/VERDICT — where VERDICT is AUTOMATION_DEPLOYED (templates ready) or REVIEW_REQUIRED (specific gap cited).", "supports_pipeline": "true", "activation_triggers": "enforce backup vault policy, deploy vault lock, backup coverage audit, recovery point encryption verification, cross-region backup compliance, backup frequency check, Config rule for backup compliance, backup compliance report, multi-account backup governance, governance mode vault lock, compliance mode vault lock, backup plan coverage audit" }
- description
- Designs and implements AWS Backup vault compliance automation workflows. Enforces vault policies (deny non-encrypted backups), validates vault lock compliance (governance vs compliance mode), automates backup report generation (daily compliance summary), verifies recovery point encryption, audits backup plan coverage (identifies resources without backup plans), validates cross-region backup replication, checks backup frequency compliance (daily for production), enforces retention policy, manages Vault Lock cool-off periods, deploys multi-account compliance via AWS Organizations, and wires Config rules for continuous backup compliance detection. Emits AUTOMATION_DEPLOYED with deployment templates or REVIEW_REQUIRED with the specific gap. Use when enforcing backup vault security, auditing backup coverage, deploying Vault Lock, verifying cross-region replication, or building Config-based backup compliance monitoring.
- compatibility
- Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline workflow design. Live deployment uses aws backup create-backup-vault, put-backup-vault-policy, put-backup-vault-lock-configuration, describe-backup-vault, list-recovery-points-by-backup-vault, start-backup-job, describe-backup-job, create-backup-plan, create-backup-selection, create-framework, describe-framework, aws configservice put-config-rule, put-remediation-configurations...
02 资源文件 21
- 参考文档eval/test-cases.yaml6.3 KB
- 参考文档evals/baselines/backup-coverage-audit.md767 B
- 参考文档evals/baselines/config-rule-compliance.md953 B
- 参考文档evals/baselines/cross-region-verification.md800 B
- 参考文档evals/baselines/vault-lock-compliance-mode.md822 B
- 参考文档evals/baselines/vault-policy-enforcement.md849 B
- 参考文档evals/eval_config.yaml1.7 KB
- 参考文档evals/evals.json4.2 KB
- 参考文档evals/prompts/backup-coverage-audit.md732 B
- 参考文档evals/prompts/config-rule-compliance.md856 B
- 参考文档evals/prompts/cross-region-verification.md726 B
- 参考文档evals/prompts/vault-lock-compliance-mode.md803 B
- 参考文档evals/prompts/vault-policy-enforcement.md765 B
- 参考文档examples/end-to-end.md7.5 KB
- 参考文档references/advanced-patterns.md6.5 KB
- 参考文档references/backup-config-rules.md13.1 KB
- 参考文档references/diagnostic-commands.md2.7 KB
- 参考文档references/error-handling.md977 B
- 参考文档references/vault-lock-modes.md6.2 KB
- 参考文档references/worked-examples.md1.3 KB
- 参考文档skill.usf.yaml4.5 KB
03 SKILL.md 正文
Backup Vault Compliance Automator
Mindset
One-line takeaway: AWS Backup vault compliance is a five-layer model — policy (who can write to the vault) → lock (immutability of retention) → coverage (are all resources backed up?) → encryption (are recovery points encrypted?) → replication (is cross-region copy verified?). A gap in ANY layer produces silent non-compliance: the vault looks secure, but backups are missing, unencrypted, or not replicated.
- Vault policy is the access gate. Without a deny-non-encrypted
policy, any IAM principal with
backup:StartBackupJobcan write unencrypted recovery points to the vault. - Vault Lock is the immutability guarantee. Compliance mode means NO ONE — not even root — can shorten retention or delete recovery points during the lock window. Governance mode allows privileged override. Choose wrong and you either lose compliance certification (governance) or lose operational flexibility (compliance).
- Coverage audit is the blind-spot finder. AWS Backup does not natively alert when a new resource (EC2, RDS, DynamoDB) lacks a backup plan. Without a coverage audit, new resources silently accumulate without backups until someone notices.
Quick navigation
| You want to... | Go to |
|---|---|
| Enforce vault policy (deny non-encrypted) | Step 2 |
| Deploy Vault Lock (compliance vs governance) | Step 3 (mode matrix) |
| Verify recovery point encryption | Step 4 |
| Audit backup plan coverage | Step 5 |
| Validate cross-region replication | Step 6 |
| Check backup frequency compliance | Step 7 |
| Deploy Config rule for backup compliance | Step 8 |
| Automate backup compliance reports | Step 9 |
| Roll out across Organizations | Step 10 |
| Manage Vault Lock cool-off period | Step 11 |
| Avoid common compliance pitfalls | Anti-Patterns |
| Recent features (Backup Framework, Cross-Account) | Recent AWS features |
Critical rules at a glance (do NOT bury these)
-
Vault Lock compliance mode is IRREVERSIBLE. Once a vault is locked in compliance mode, the lock cannot be removed by anyone — including the account root user. You cannot shorten the retention period, you cannot delete recovery points, you cannot remove the lock. The only path is waiting until each recovery point's retention expires naturally. Choose compliance mode ONLY when you are certain of the retention requirement.
-
Vault Lock governance mode allows privileged override. A principal with
backup:CancelLegalHoldcan remove the lock and delete recovery points. Governance mode is for internal policy enforcement where operational flexibility is needed. It does NOT meet regulatory immutability requirements (SEC 17a-4, CFTC, FINRA). -
Recovery point encryption is SEPARATE from vault encryption. The vault has its own KMS encryption (for vault metadata). Each recovery point is encrypted with a KMS key specified at backup job creation time. A vault policy that does not enforce
aws:ResourceTag/x-calculated-integrityor equivalent does not guarantee encrypted recovery points. -
Backup plan coverage is NOT automatic. A backup selection targets resources by tags or resource IDs. A new resource without the matching tag or explicit ID is NOT backed up. There is no "backup all resources" option — coverage gaps are silent.
-
Cross-region replication is a COPY, not a separate backup. The replication is asynchronous and may lag behind the primary region. A backup job that succeeds in the primary region may not yet be replicated to the secondary region. Compliance verification must check the COPY status, not just the original job status.
Pre-flight: data requirements
Designing a backup vault compliance workflow requires these inputs:
| Input | Source | Why |
|---|---|---|
| All backup vaults | list-backup-vaults |
Inventory of vaults to assess |
| Vault policies | get-backup-vault-policy |
Current access controls |
| Vault lock configuration | describe-backup-vault (LockState) |
Whether lock is active and in what mode |
| Recovery points per vault | list-recovery-points-by-backup-vault |
Encryption status and retention |
| Backup plans and selections | list-backup-plans, list-backup-selections |
Coverage scope |
| Resources without backup | AWS Config + Backup audit | Coverage gap analysis |
| Cross-region copy jobs | list-copy-jobs |
Replication status |
| KMS keys for backup | kms describe-key |
Encryption key inventory |
| Organizations backup config | organizations list-delegated-administrators |
Multi-account setup |
| Config rules for backup | describe-config-rules (backup-related) |
Existing compliance monitoring |
If the input is malformed (missing vault name, ambiguous lock mode), emit:
COMPLIANCE: <reference>
VAULT: <name or "account-wide">
VERDICT: ERROR
REASON: Cannot design backup vault compliance — vault inventory and lock-mode requirement are required inputs.
GAP: Run list-backup-vaults and describe-backup-vault, then supply the compliance requirement (regulatory standard, retention period).
Process — Backup vault compliance design (apply in order)
Step 0: Expert knowledge — non-obvious AWS Backup behaviors
Full catalog: Advanced patterns — cool-off semantics, policy-vs-lock, Backup Framework, cross-account prerequisites, job validation, lock-vs-IAM.
Step 1: Inventory the current backup state
Full inventory commands: Diagnostic commands.
Step 2: Enforce vault policy (deny non-encrypted backups)
Vault policy template that enforces encryption:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyUnencryptedBackups",
"Effect": "Deny",
"Principal": {"AWS": "*"},
"Action": ["backup:StartBackupJob", "backup:CopyIntoBackupVault"],
"Resource": "*",
"Condition": {
"StringNotEquals": {
"aws:ResourceTag/x-calculated-integrity": "ENCRYPTED"
}
}
},
{
"Sid": "DenyNonApprovedKMSKey",
"Effect": "Deny",
"Principal": {"AWS": "*"},
"Action": ["backup:StartBackupJob", "backup:CopyIntoBackupVault"],
"Resource": "*",
"Condition": {
"StringNotEquals": {
"kms:ViaService": "backup.us-east-1.amazonaws.com"
}
}
},
{
"Sid": "EnforceTLS",
"Effect": "Deny",
"Principal": {"AWS": "*"},
"Action": "backup:*",
"Resource": "*",
"Condition": {"Bool": {"aws:SecureTransport": false}}
}
]
}
Apply the policy:
aws backup put-backup-vault-policy \
--backup-vault-name prod-backup-vault \
--policy file://vault-policy.json \
--region us-east-1
Cross-account vault policy statement: Advanced patterns.
Step 3: Deploy Vault Lock (governance vs compliance mode)
THIS IS THE MOST CRITICAL DECISION IN BACKUP COMPLIANCE.
| Dimension | Governance Mode | Compliance Mode |
|---|---|---|
| Immutability | Soft — privileged override | Hard — no override, not even root |
| Lock removal | CancelLegalHold by privileged principal |
IMPOSSIBLE after cool-off |
| Regulatory compliance | Does NOT meet SEC 17a-4, CFTC, FINRA | Meets SEC 17a-4, CFTC, FINRA |
| Operational risk | Low — can correct mistakes | HIGH — cannot correct mistakes |
Deploy governance mode:
aws backup put-backup-vault-lock-configuration \
--backup-vault-name prod-backup-vault \
--changeable-for-days 3 --min-retention-days 1 --max-retention-days 365
Deploy compliance mode:
aws backup put-backup-vault-lock-configuration \
--backup-vault-name compliance-vault \
--changeable-for-days 3 --min-retention-days 90 --max-retention-days 2557 --mode COMPLIANCE
Critical warning: ChangeableForDays sets the cool-off. During
cool-off the lock CAN be removed. After expiry, compliance mode is
PERMANENT. Before deploying: verify retention matches regulatory
requirements, verify vault contains only resources needing immutable
retention, test in non-production first, document lock date.
Verify: aws backup describe-backup-vault --backup-vault-name <vault> --query '[LockState,MinRetentionDays,MaxRetentionDays,VaultLockDate]'
Step 4: Verify recovery point encryption
For each recovery point, verify encryption key ARN is present and the key is the approved one:
aws backup list-recovery-points-by-backup-vault \
--backup-vault-name prod-backup-vault \
--output json \
--region us-east-1
Per-recovery-point KMS verification script: Diagnostic commands.
If violations are found, the vault policy (Step 2) should prevent future unencrypted backups. Existing unencrypted recovery points must be either:
- Re-backed-up with encryption (if retention allows).
- Deleted and recreated (if not under Vault Lock).
- Documented as an exception (if under Vault Lock and cannot be deleted).
Step 5: Audit backup plan coverage
Identify resources that lack backup plans:
Resource enumeration commands (EC2, RDS, DynamoDB, plans): Diagnostic commands.
Coverage audit logic: enumerate all EC2/RDS/DynamoDB/EFS resources, cross-reference against backup plan selections (tag-based and explicit-ID), and compute the gap. A coverage gap means the resource has NO backup — typically a P1 finding for production.
Config rule for coverage detection:
aws configservice put-config-rule \
--config-rule '{
"ConfigRuleName": "backup-plan-coverage-check",
"Source": {
"Owner": "AWS",
"SourceIdentifier": "BACKUP_RECOVERY_POINT_MANUAL_DELETION_DISABLED"
},
"Scope": {"ComplianceResourceTypes": ["AWS::Backup::BackupPlan"]}
}' \
--region us-east-1
For custom coverage checks (e.g., "all EC2 instances tagged Environment=prod must have a backup plan"), a custom Lambda Config rule is required. See references/backup-config-rules.md.
Step 6: Validate cross-region backup replication
Copy-job and destination-vault verification commands: Diagnostic commands.
Replication checklist: copy job COMPLETED, destination vault has
recovery points, destination KMS key is region-specific (not source
key ARN), recovery point ARN differs from source.
Step 7: Check backup frequency compliance
Verify backups run at the required frequency via list-backup-jobs.
| Resource tier | Required frequency | Required retention |
|---|---|---|
| Production critical (RPO < 4h) | Every 4 hours | 30 days |
| Production standard (RPO < 24h) | Daily | 30-90 days |
| Staging | Weekly | 14 days |
| Development | On-demand | 7 days |
Step 8: Deploy Config rules for backup compliance
AWS-managed Config rules for backup:
| Rule | What it checks |
|---|---|
backup-plan-frequency |
Backup plans meet minimum frequency |
backup-recovery-point-encrypted |
All recovery points are encrypted |
backup-recovery-point-manual-deletion-disabled |
Vault Lock prevents manual deletion |
backup-vaults-are-encrypted |
All backup vaults use KMS encryption |
aws configservice put-config-rule \
--config-rule '{
"ConfigRuleName": "backup-recovery-point-encrypted",
"Source": {
"Owner": "AWS",
"SourceIdentifier": "backup-recovery-point-encrypted"
}
}' \
--region us-east-1
Custom coverage-rule deploy CLI: Backup Config rules.
For the full custom Config rule Lambda implementation including tag extraction, backup plan lookup, and compliance evaluation, see references/backup-config-rules.md.
Step 9: Automate backup compliance reports
Report-plan setup (daily compliance summary to S3): Advanced patterns.
Step 10: Multi-account backup compliance via Organizations
Delegated administrator, org-level backup policy, Config aggregation: Advanced patterns.
Step 11: Manage Vault Lock cool-off period
| Phase | Duration | What happens |
|---|---|---|
| Pre-lock | N/A | Vault fully mutable |
| Cool-off | ChangeableForDays (min 3) |
Lock is LOCKED but CAN be removed |
| Post-cool-off | Permanent | Compliance mode: IRREVERSIBLE. Governance: override-capable |
Checklist: set ChangeableForDays to minimum (3), document lock date,
verify retention during cool-off, confirm LockState post-expiry,
verify delete-backup-vault-lock-configuration FAILS after cool-off
in compliance mode.
Output format
COMPLIANCE: <reference>
VAULT: <name or "account-wide">
POLICY:
- Vault policy: <deny-non-encrypted | open | custom>
- KMS enforcement: <approved key ARN>
LOCK:
- Mode: GOVERNANCE | COMPLIANCE | UNLOCKED
- MinRetention: <days>
- MaxRetention: <days>
- CoolOff: <days remaining or "expired — permanent">
COVERAGE:
- Total resources: <N>
- Covered: <N>
- Gap: <N> resources without backup plan
REPLICATION:
- Cross-region: <destination region, status>
- Cross-account: <destination account, status>
VERDICT: AUTOMATION_DEPLOYED | REVIEW_REQUIRED
GAP: <if REVIEW_REQUIRED, the specific missing piece>
TEMPLATE: <CLI snippet or JSON for the compliance configuration>
Worked example — AUTOMATION_DEPLOYED, full compliance vault
COMPLIANCE: prod-backup-compliance-baseline
VAULT: prod-backup-vault
POLICY:
- Vault policy: deny-non-encrypted, enforce-approved-kms, enforce-tls
- KMS enforcement: arn:aws:kms:us-east-1:111111111111:key/prod-backup-key
LOCK:
- Mode: COMPLIANCE
- MinRetention: 90 days
- MaxRetention: 2557 days (7 years)
- CoolOff: expired — permanent lock active
COVERAGE:
- Total resources: 85 (EC2=40, RDS=15, DynamoDB=20, EFS=10)
- Covered: 82 (by tag-based backup selection)
- Gap: 3 EC2 instances without BackupPlan tag
REPLICATION:
- Cross-region: us-west-2, COMPLETED (last copy verified)
- Cross-account: N/A (single account)
VERDICT: AUTOMATION_DEPLOYED
GAP: None (3 untagged EC2 instances flagged for tagging, Config rule deployed for continuous coverage check)
TEMPLATE:
aws backup put-backup-vault-policy --backup-vault-name prod-backup-vault --policy file://vault-policy.json
aws backup put-backup-vault-lock-configuration --backup-vault-name prod-backup-vault --changeable-for-days 3 --min-retention-days 90 --max-retention-days 2557 --mode COMPLIANCE
aws configservice put-config-rule --config-rule '{"ConfigRuleName":"backup-recovery-point-encrypted","Source":{"Owner":"AWS","SourceIdentifier":"backup-recovery-point-encrypted"}}'
Anti-Patterns — NEVER do these things
-
NEVER deploy compliance-mode Vault Lock without testing in governance mode first. Compliance mode is IRREVERSIBLE — a misconfigured retention period is a permanent problem.
-
NEVER assume governance mode meets regulatory requirements. It allows privileged override and does NOT satisfy SEC 17a-4, CFTC 1.31, or FINRA 4511.
-
NEVER leave a backup vault without a policy. The default allows any principal with
backup:*to write unencrypted recovery points. -
NEVER assume all resources are covered by backup plans. A new resource without the matching tag is silently excluded. Always deploy a coverage audit Config rule.
-
NEVER verify cross-region replication by checking only the source region. Always verify in the DESTINATION region's vault — the copy job may report
COMPLETEDbut the recovery point may not be visible yet. -
NEVER use the same KMS key for source and destination regions. KMS keys are region-specific. Using the source key ARN produces
KMSNotFoundExceptionin the destination. -
NEVER omit
ChangeableForDayswhen deploying Vault Lock. Set it explicitly and document the cool-off expiry date. -
NEVER confuse vault encryption with recovery point encryption. The vault has its own KMS key; each recovery point may use a different key. Verify both independently.
-
NEVER deploy backup coverage using explicit resource IDs only. Use tag-based selections (
ListOfTags) for dynamic coverage. -
NEVER forget that AWS Backup audit evaluates daily, not real-time. For immediate alerting, use EventBridge on
Backup Job State Change. -
NEVER omit cross-account IAM trust. The destination vault policy MUST include
aws:PrincipalAccountfor the source account. -
NEVER assume backup report plans are sufficient for compliance evidence. Supplement with CloudTrail queries and Config timeline.
Pre-flight safety checks (run before applying any vault compliance CLI)
-
MANDATORY CONFIRMATION GATE. Before any state-changing operation, emit:
CONFIRM: About to <action> for vault <vault> in account <account>. Compliance mode locks are IRREVERSIBLE. Proceed? (yes/no) -
Back up the current vault policy before modifying:
aws backup get-backup-vault-policy --backup-vault-name <vault> > backup.json -
Before deploying compliance-mode Vault Lock, test in governance mode first: deploy with same parameters, verify retention/policy/ coverage, simulate recovery point lifecycle (create, verify deletion is blocked), then deploy compliance mode.
-
Before enabling cross-region replication, verify destination vault exists with correct policy, destination-region KMS key is enabled, and backup plan copy config references correct vault/key.
-
For multi-account backup, verify delegated administrator is configured before deploying org-level policies.
Appendix A — Vault Lock mode decision tree
Is the vault subject to regulatory immutability requirements?
├─ Yes (SEC 17a-4, CFTC, FINRA, HIPAA)
│ └─ COMPLIANCE MODE
│ - MinRetention: per regulatory minimum (e.g., 90d, 2557d)
│ - MaxRetention: per regulatory maximum
│ - ChangeableForDays: 3 (minimum)
│ - COOL-OFF EXPIRY IS PERMANENT — verify all parameters before
│ - Test in non-prod first
└─ No
└─ Is operational flexibility needed (ability to override)?
├─ Yes → GOVERNANCE MODE
│ - MinRetention: per internal policy
│ - MaxRetention: per internal policy
│ - Override requires backup:CancelLegalHold permission
└─ No → COMPLIANCE MODE (for defense-in-depth)
- Same as regulatory path
- Use when the organization wants immutability even without regulatory mandate
References (load on demand)
- Worked examples — full walkthroughs (REVIEW_REQUIRED governance-mode review)
- Error handling — vault-policy and cross-region replication error tables and remedies
- Diagnostic commands — inventory, encryption verification, coverage enumeration, copy-job checks
- Advanced patterns — non-obvious Backup behaviors, cross-account policy, reports, multi-account rollout, cost reference, recent features
- Backup Config rules — managed and custom Config rule implementations
- Vault Lock modes — full governance vs compliance mode reference and cost model
Domain
AWS CloudOps / Storage — AWS Backup vault compliance automation.
AWS documentation
- AWS Backup — https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html
- Backup Vault Lock — https://docs.aws.amazon.com/aws-backup/latest/devguide/vaults.html#vault-lock
- Backup Vault Policies — https://docs.aws.amazon.com/aws-backup/latest/devguide/access-control-overview.html
- AWS Backup Frameworks — https://docs.aws.amazon.com/aws-backup/latest/devguide/frameworks.html
- AWS Config Rules for Backup — https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring-automated.html
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.