[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A40SYX3CD1K8XTWPZREQRK":3,"skill-same:01M7A40SYX3CD1K8XTWPZREQRK":151},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7A40SYX3CD1K8XTWPZREQRK","backup-vault-compliance-automator",null,"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.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: backup-vault-compliance-automator\ndescription: 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.\nlicense: Apache-2.0\ncompatibility: 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...\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '4'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Storage\n  task_type: automate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\n  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.\n  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\n  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\u002FLOCK\u002FCOVERAGE\u002FREPLICATION\u002FVERDICT — where VERDICT is AUTOMATION_DEPLOYED (templates ready) or REVIEW_REQUIRED (specific gap cited).'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  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\n  tags: aws-backup, vault-lock, backup-compliance, vault-policy, cross-region, config-rules, automate\n---\n\n# Backup Vault Compliance Automator\n\n## Mindset\n\n**One-line takeaway:** AWS Backup vault compliance is a five-layer\nmodel — **policy** (who can write to the vault) → **lock**\n(immutability of retention) → **coverage** (are all resources backed\nup?) → **encryption** (are recovery points encrypted?) → **replication**\n(is cross-region copy verified?). A gap in ANY layer produces silent\nnon-compliance: the vault looks secure, but backups are missing,\nunencrypted, or not replicated.\n\n- **Vault policy** is the access gate. Without a deny-non-encrypted\n  policy, any IAM principal with `backup:StartBackupJob` can write\n  unencrypted recovery points to the vault.\n- **Vault Lock** is the immutability guarantee. Compliance mode means\n  NO ONE — not even root — can shorten retention or delete recovery\n  points during the lock window. Governance mode allows privileged\n  override. Choose wrong and you either lose compliance certification\n  (governance) or lose operational flexibility (compliance).\n- **Coverage audit** is the blind-spot finder. AWS Backup does not\n  natively alert when a new resource (EC2, RDS, DynamoDB) lacks a\n  backup plan. Without a coverage audit, new resources silently\n  accumulate without backups until someone notices.\n\n## Quick navigation\n\n| You want to... | Go to |\n|---|---|\n| Enforce vault policy (deny non-encrypted) | Step 2 |\n| Deploy Vault Lock (compliance vs governance) | Step 3 (mode matrix) |\n| Verify recovery point encryption | Step 4 |\n| Audit backup plan coverage | Step 5 |\n| Validate cross-region replication | Step 6 |\n| Check backup frequency compliance | Step 7 |\n| Deploy Config rule for backup compliance | Step 8 |\n| Automate backup compliance reports | Step 9 |\n| Roll out across Organizations | Step 10 |\n| Manage Vault Lock cool-off period | Step 11 |\n| Avoid common compliance pitfalls | Anti-Patterns |\n| Recent features (Backup Framework, Cross-Account) | Recent AWS features |\n\n## Critical rules at a glance (do NOT bury these)\n\n1. **Vault Lock compliance mode is IRREVERSIBLE.** Once a vault is\n   locked in compliance mode, the lock cannot be removed by anyone —\n   including the account root user. You cannot shorten the retention\n   period, you cannot delete recovery points, you cannot remove the\n   lock. The only path is waiting until each recovery point's retention\n   expires naturally. Choose compliance mode ONLY when you are certain\n   of the retention requirement.\n\n2. **Vault Lock governance mode allows privileged override.** A\n   principal with `backup:CancelLegalHold` can remove the lock and\n   delete recovery points. Governance mode is for internal policy\n   enforcement where operational flexibility is needed. It does NOT\n   meet regulatory immutability requirements (SEC 17a-4, CFTC, FINRA).\n\n3. **Recovery point encryption is SEPARATE from vault encryption.**\n   The vault has its own KMS encryption (for vault metadata). Each\n   recovery point is encrypted with a KMS key specified at backup job\n   creation time. A vault policy that does not enforce\n   `aws:ResourceTag\u002Fx-calculated-integrity` or equivalent does not\n   guarantee encrypted recovery points.\n\n4. **Backup plan coverage is NOT automatic.** A backup selection\n   targets resources by tags or resource IDs. A new resource without\n   the matching tag or explicit ID is NOT backed up. There is no\n   \"backup all resources\" option — coverage gaps are silent.\n\n5. **Cross-region replication is a COPY, not a separate backup.** The\n   replication is asynchronous and may lag behind the primary region.\n   A backup job that succeeds in the primary region may not yet be\n   replicated to the secondary region. Compliance verification must\n   check the COPY status, not just the original job status.\n\n## Pre-flight: data requirements\n\nDesigning a backup vault compliance workflow requires these inputs:\n\n| Input | Source | Why |\n|---|---|---|\n| All backup vaults | `list-backup-vaults` | Inventory of vaults to assess |\n| Vault policies | `get-backup-vault-policy` | Current access controls |\n| Vault lock configuration | `describe-backup-vault` (LockState) | Whether lock is active and in what mode |\n| Recovery points per vault | `list-recovery-points-by-backup-vault` | Encryption status and retention |\n| Backup plans and selections | `list-backup-plans`, `list-backup-selections` | Coverage scope |\n| Resources without backup | AWS Config + Backup audit | Coverage gap analysis |\n| Cross-region copy jobs | `list-copy-jobs` | Replication status |\n| KMS keys for backup | `kms describe-key` | Encryption key inventory |\n| Organizations backup config | `organizations list-delegated-administrators` | Multi-account setup |\n| Config rules for backup | `describe-config-rules` (backup-related) | Existing compliance monitoring |\n\n**If the input is malformed** (missing vault name, ambiguous lock\nmode), emit:\n\n```text\nCOMPLIANCE: \u003Creference>\nVAULT: \u003Cname or \"account-wide\">\nVERDICT: ERROR\nREASON: Cannot design backup vault compliance — vault inventory and lock-mode requirement are required inputs.\nGAP: Run list-backup-vaults and describe-backup-vault, then supply the compliance requirement (regulatory standard, retention period).\n```\n\n## Process — Backup vault compliance design (apply in order)\n\n### Step 0: Expert knowledge — non-obvious AWS Backup behaviors\n\nFull catalog: [Advanced patterns](references\u002Fadvanced-patterns.md) — cool-off semantics, policy-vs-lock, Backup Framework, cross-account prerequisites, job validation, lock-vs-IAM.\n\n### Step 1: Inventory the current backup state\n\nFull inventory commands: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n### Step 2: Enforce vault policy (deny non-encrypted backups)\n\nVault policy template that enforces encryption:\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"DenyUnencryptedBackups\",\n      \"Effect\": \"Deny\",\n      \"Principal\": {\"AWS\": \"*\"},\n      \"Action\": [\"backup:StartBackupJob\", \"backup:CopyIntoBackupVault\"],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"aws:ResourceTag\u002Fx-calculated-integrity\": \"ENCRYPTED\"\n        }\n      }\n    },\n    {\n      \"Sid\": \"DenyNonApprovedKMSKey\",\n      \"Effect\": \"Deny\",\n      \"Principal\": {\"AWS\": \"*\"},\n      \"Action\": [\"backup:StartBackupJob\", \"backup:CopyIntoBackupVault\"],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"kms:ViaService\": \"backup.us-east-1.amazonaws.com\"\n        }\n      }\n    },\n    {\n      \"Sid\": \"EnforceTLS\",\n      \"Effect\": \"Deny\",\n      \"Principal\": {\"AWS\": \"*\"},\n      \"Action\": \"backup:*\",\n      \"Resource\": \"*\",\n      \"Condition\": {\"Bool\": {\"aws:SecureTransport\": false}}\n    }\n  ]\n}\n```\n\nApply the policy:\n\n```bash\naws backup put-backup-vault-policy \\\n  --backup-vault-name prod-backup-vault \\\n  --policy file:\u002F\u002Fvault-policy.json \\\n  --region us-east-1\n```\n\nCross-account vault policy statement: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 3: Deploy Vault Lock (governance vs compliance mode)\n\n**THIS IS THE MOST CRITICAL DECISION IN BACKUP COMPLIANCE.**\n\n| Dimension | Governance Mode | Compliance Mode |\n|---|---|---|\n| Immutability | Soft — privileged override | Hard — no override, not even root |\n| Lock removal | `CancelLegalHold` by privileged principal | IMPOSSIBLE after cool-off |\n| Regulatory compliance | Does NOT meet SEC 17a-4, CFTC, FINRA | Meets SEC 17a-4, CFTC, FINRA |\n| Operational risk | Low — can correct mistakes | HIGH — cannot correct mistakes |\n\nDeploy governance mode:\n\n```bash\naws backup put-backup-vault-lock-configuration \\\n  --backup-vault-name prod-backup-vault \\\n  --changeable-for-days 3 --min-retention-days 1 --max-retention-days 365\n```\n\nDeploy compliance mode:\n\n```bash\naws backup put-backup-vault-lock-configuration \\\n  --backup-vault-name compliance-vault \\\n  --changeable-for-days 3 --min-retention-days 90 --max-retention-days 2557 --mode COMPLIANCE\n```\n\n**Critical warning:** `ChangeableForDays` sets the cool-off. During\ncool-off the lock CAN be removed. After expiry, compliance mode is\nPERMANENT. Before deploying: verify retention matches regulatory\nrequirements, verify vault contains only resources needing immutable\nretention, test in non-production first, document lock date.\n\nVerify: `aws backup describe-backup-vault --backup-vault-name \u003Cvault>\n--query '[LockState,MinRetentionDays,MaxRetentionDays,VaultLockDate]'`\n\n### Step 4: Verify recovery point encryption\n\nFor each recovery point, verify encryption key ARN is present and\nthe key is the approved one:\n\n```bash\naws backup list-recovery-points-by-backup-vault \\\n  --backup-vault-name prod-backup-vault \\\n  --output json \\\n  --region us-east-1\n```\n\nPer-recovery-point KMS verification script: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nIf violations are found, the vault policy (Step 2) should prevent\nfuture unencrypted backups. Existing unencrypted recovery points\nmust be either:\n1. Re-backed-up with encryption (if retention allows).\n2. Deleted and recreated (if not under Vault Lock).\n3. Documented as an exception (if under Vault Lock and cannot be\n   deleted).\n\n### Step 5: Audit backup plan coverage\n\nIdentify resources that lack backup plans:\n\nResource enumeration commands (EC2, RDS, DynamoDB, plans): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nCoverage audit logic: enumerate all EC2\u002FRDS\u002FDynamoDB\u002FEFS resources,\ncross-reference against backup plan selections (tag-based and\nexplicit-ID), and compute the gap. A coverage gap means the resource\nhas NO backup — typically a P1 finding for production.\n\n**Config rule for coverage detection:**\n\n```bash\naws configservice put-config-rule \\\n  --config-rule '{\n    \"ConfigRuleName\": \"backup-plan-coverage-check\",\n    \"Source\": {\n      \"Owner\": \"AWS\",\n      \"SourceIdentifier\": \"BACKUP_RECOVERY_POINT_MANUAL_DELETION_DISABLED\"\n    },\n    \"Scope\": {\"ComplianceResourceTypes\": [\"AWS::Backup::BackupPlan\"]}\n  }' \\\n  --region us-east-1\n```\n\nFor custom coverage checks (e.g., \"all EC2 instances tagged\nEnvironment=prod must have a backup plan\"), a custom Lambda Config\nrule is required. See **references\u002Fbackup-config-rules.md**.\n\n### Step 6: Validate cross-region backup replication\n\nCopy-job and destination-vault verification commands: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nReplication checklist: copy job `COMPLETED`, destination vault has\nrecovery points, destination KMS key is region-specific (not source\nkey ARN), recovery point ARN differs from source.\n\n### Step 7: Check backup frequency compliance\n\nVerify backups run at the required frequency via `list-backup-jobs`.\n\n| Resource tier | Required frequency | Required retention |\n|---|---|---|\n| Production critical (RPO \u003C 4h) | Every 4 hours | 30 days |\n| Production standard (RPO \u003C 24h) | Daily | 30-90 days |\n| Staging | Weekly | 14 days |\n| Development | On-demand | 7 days |\n\n### Step 8: Deploy Config rules for backup compliance\n\nAWS-managed Config rules for backup:\n\n| Rule | What it checks |\n|---|---|\n| `backup-plan-frequency` | Backup plans meet minimum frequency |\n| `backup-recovery-point-encrypted` | All recovery points are encrypted |\n| `backup-recovery-point-manual-deletion-disabled` | Vault Lock prevents manual deletion |\n| `backup-vaults-are-encrypted` | All backup vaults use KMS encryption |\n\n```bash\naws configservice put-config-rule \\\n  --config-rule '{\n    \"ConfigRuleName\": \"backup-recovery-point-encrypted\",\n    \"Source\": {\n      \"Owner\": \"AWS\",\n      \"SourceIdentifier\": \"backup-recovery-point-encrypted\"\n    }\n  }' \\\n  --region us-east-1\n```\n\nCustom coverage-rule deploy CLI: [Backup Config rules](references\u002Fbackup-config-rules.md).\n\nFor the full custom Config rule Lambda implementation including tag\nextraction, backup plan lookup, and compliance evaluation, see\n**references\u002Fbackup-config-rules.md**.\n\n### Step 9: Automate backup compliance reports\n\nReport-plan setup (daily compliance summary to S3): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 10: Multi-account backup compliance via Organizations\n\nDelegated administrator, org-level backup policy, Config aggregation: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 11: Manage Vault Lock cool-off period\n\n| Phase | Duration | What happens |\n|---|---|---|\n| Pre-lock | N\u002FA | Vault fully mutable |\n| Cool-off | `ChangeableForDays` (min 3) | Lock is `LOCKED` but CAN be removed |\n| Post-cool-off | Permanent | Compliance mode: IRREVERSIBLE. Governance: override-capable |\n\nChecklist: set `ChangeableForDays` to minimum (3), document lock date,\nverify retention during cool-off, confirm `LockState` post-expiry,\nverify `delete-backup-vault-lock-configuration` FAILS after cool-off\nin compliance mode.\n\n## Output format\n\n```text\nCOMPLIANCE: \u003Creference>\nVAULT: \u003Cname or \"account-wide\">\nPOLICY:\n  - Vault policy: \u003Cdeny-non-encrypted | open | custom>\n  - KMS enforcement: \u003Capproved key ARN>\nLOCK:\n  - Mode: GOVERNANCE | COMPLIANCE | UNLOCKED\n  - MinRetention: \u003Cdays>\n  - MaxRetention: \u003Cdays>\n  - CoolOff: \u003Cdays remaining or \"expired — permanent\">\nCOVERAGE:\n  - Total resources: \u003CN>\n  - Covered: \u003CN>\n  - Gap: \u003CN> resources without backup plan\nREPLICATION:\n  - Cross-region: \u003Cdestination region, status>\n  - Cross-account: \u003Cdestination account, status>\nVERDICT: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\nGAP: \u003Cif REVIEW_REQUIRED, the specific missing piece>\nTEMPLATE: \u003CCLI snippet or JSON for the compliance configuration>\n```\n\n### Worked example — AUTOMATION_DEPLOYED, full compliance vault\n\n```text\nCOMPLIANCE: prod-backup-compliance-baseline\nVAULT: prod-backup-vault\nPOLICY:\n  - Vault policy: deny-non-encrypted, enforce-approved-kms, enforce-tls\n  - KMS enforcement: arn:aws:kms:us-east-1:111111111111:key\u002Fprod-backup-key\nLOCK:\n  - Mode: COMPLIANCE\n  - MinRetention: 90 days\n  - MaxRetention: 2557 days (7 years)\n  - CoolOff: expired — permanent lock active\nCOVERAGE:\n  - Total resources: 85 (EC2=40, RDS=15, DynamoDB=20, EFS=10)\n  - Covered: 82 (by tag-based backup selection)\n  - Gap: 3 EC2 instances without BackupPlan tag\nREPLICATION:\n  - Cross-region: us-west-2, COMPLETED (last copy verified)\n  - Cross-account: N\u002FA (single account)\nVERDICT: AUTOMATION_DEPLOYED\nGAP: None (3 untagged EC2 instances flagged for tagging, Config rule deployed for continuous coverage check)\nTEMPLATE:\n  aws backup put-backup-vault-policy --backup-vault-name prod-backup-vault --policy file:\u002F\u002Fvault-policy.json\n  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\n  aws configservice put-config-rule --config-rule '{\"ConfigRuleName\":\"backup-recovery-point-encrypted\",\"Source\":{\"Owner\":\"AWS\",\"SourceIdentifier\":\"backup-recovery-point-encrypted\"}}'\n```\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER deploy compliance-mode Vault Lock without testing in\n  governance mode first. Compliance mode is IRREVERSIBLE — a\n  misconfigured retention period is a permanent problem.\n\n- NEVER assume governance mode meets regulatory requirements. It\n  allows privileged override and does NOT satisfy SEC 17a-4, CFTC\n  1.31, or FINRA 4511.\n\n- NEVER leave a backup vault without a policy. The default allows\n  any principal with `backup:*` to write unencrypted recovery points.\n\n- NEVER assume all resources are covered by backup plans. A new\n  resource without the matching tag is silently excluded. Always\n  deploy a coverage audit Config rule.\n\n- NEVER verify cross-region replication by checking only the source\n  region. Always verify in the DESTINATION region's vault — the copy\n  job may report `COMPLETED` but the recovery point may not be\n  visible yet.\n\n- NEVER use the same KMS key for source and destination regions.\n  KMS keys are region-specific. Using the source key ARN produces\n  `KMSNotFoundException` in the destination.\n\n- NEVER omit `ChangeableForDays` when deploying Vault Lock. Set it\n  explicitly and document the cool-off expiry date.\n\n- NEVER confuse vault encryption with recovery point encryption.\n  The vault has its own KMS key; each recovery point may use a\n  different key. Verify both independently.\n\n- NEVER deploy backup coverage using explicit resource IDs only.\n  Use tag-based selections (`ListOfTags`) for dynamic coverage.\n\n- NEVER forget that AWS Backup audit evaluates daily, not real-time.\n  For immediate alerting, use EventBridge on `Backup Job State Change`.\n\n- NEVER omit cross-account IAM trust. The destination vault policy\n  MUST include `aws:PrincipalAccount` for the source account.\n\n- NEVER assume backup report plans are sufficient for compliance\n  evidence. Supplement with CloudTrail queries and Config timeline.\n\n## Pre-flight safety checks (run before applying any vault compliance CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation,\n  emit: `CONFIRM: About to \u003Caction> for vault \u003Cvault> in account\n  \u003Caccount>. Compliance mode locks are IRREVERSIBLE. Proceed? (yes\u002Fno)`\n\n- **Back up the current vault policy** before modifying:\n  `aws backup get-backup-vault-policy --backup-vault-name \u003Cvault> > backup.json`\n\n- **Before deploying compliance-mode Vault Lock**, test in governance\n  mode first: deploy with same parameters, verify retention\u002Fpolicy\u002F\n  coverage, simulate recovery point lifecycle (create, verify deletion\n  is blocked), then deploy compliance mode.\n\n- **Before enabling cross-region replication**, verify destination\n  vault exists with correct policy, destination-region KMS key is\n  enabled, and backup plan copy config references correct vault\u002Fkey.\n\n- **For multi-account backup**, verify delegated administrator is\n  configured before deploying org-level policies.\n\n## Appendix A — Vault Lock mode decision tree\n\n```\nIs the vault subject to regulatory immutability requirements?\n├─ Yes (SEC 17a-4, CFTC, FINRA, HIPAA)\n│   └─ COMPLIANCE MODE\n│       - MinRetention: per regulatory minimum (e.g., 90d, 2557d)\n│       - MaxRetention: per regulatory maximum\n│       - ChangeableForDays: 3 (minimum)\n│       - COOL-OFF EXPIRY IS PERMANENT — verify all parameters before\n│       - Test in non-prod first\n└─ No\n    └─ Is operational flexibility needed (ability to override)?\n        ├─ Yes → GOVERNANCE MODE\n        │   - MinRetention: per internal policy\n        │   - MaxRetention: per internal policy\n        │   - Override requires backup:CancelLegalHold permission\n        └─ No → COMPLIANCE MODE (for defense-in-depth)\n            - Same as regulatory path\n            - Use when the organization wants immutability even without regulatory mandate\n```\n\n## References (load on demand)\n\n- [Worked examples](references\u002Fworked-examples.md) — full walkthroughs (REVIEW_REQUIRED governance-mode review)\n- [Error handling](references\u002Ferror-handling.md) — vault-policy and cross-region replication error tables and remedies\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — inventory, encryption verification, coverage enumeration, copy-job checks\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — non-obvious Backup behaviors, cross-account policy, reports, multi-account rollout, cost reference, recent features\n- [Backup Config rules](references\u002Fbackup-config-rules.md) — managed and custom Config rule implementations\n- [Vault Lock modes](references\u002Fvault-lock-modes.md) — full governance vs compliance mode reference and cost model\n\n## Domain\n\nAWS CloudOps \u002F Storage — AWS Backup vault compliance automation.\n\n## AWS documentation\n\n- **AWS Backup** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fwhatisbackup.html\n- **Backup Vault Lock** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fvaults.html#vault-lock\n- **Backup Vault Policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Faccess-control-overview.html\n- **AWS Backup Frameworks** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fframeworks.html\n- **AWS Config Rules for Backup** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fmonitoring-automated.html\n","# Backup Vault Compliance Automator\n\n## Mindset\n\n**One-line takeaway:** AWS Backup vault compliance is a five-layer\nmodel — **policy** (who can write to the vault) → **lock**\n(immutability of retention) → **coverage** (are all resources backed\nup?) → **encryption** (are recovery points encrypted?) → **replication**\n(is cross-region copy verified?). A gap in ANY layer produces silent\nnon-compliance: the vault looks secure, but backups are missing,\nunencrypted, or not replicated.\n\n- **Vault policy** is the access gate. Without a deny-non-encrypted\n  policy, any IAM principal with `backup:StartBackupJob` can write\n  unencrypted recovery points to the vault.\n- **Vault Lock** is the immutability guarantee. Compliance mode means\n  NO ONE — not even root — can shorten retention or delete recovery\n  points during the lock window. Governance mode allows privileged\n  override. Choose wrong and you either lose compliance certification\n  (governance) or lose operational flexibility (compliance).\n- **Coverage audit** is the blind-spot finder. AWS Backup does not\n  natively alert when a new resource (EC2, RDS, DynamoDB) lacks a\n  backup plan. Without a coverage audit, new resources silently\n  accumulate without backups until someone notices.\n\n## Quick navigation\n\n| You want to... | Go to |\n|---|---|\n| Enforce vault policy (deny non-encrypted) | Step 2 |\n| Deploy Vault Lock (compliance vs governance) | Step 3 (mode matrix) |\n| Verify recovery point encryption | Step 4 |\n| Audit backup plan coverage | Step 5 |\n| Validate cross-region replication | Step 6 |\n| Check backup frequency compliance | Step 7 |\n| Deploy Config rule for backup compliance | Step 8 |\n| Automate backup compliance reports | Step 9 |\n| Roll out across Organizations | Step 10 |\n| Manage Vault Lock cool-off period | Step 11 |\n| Avoid common compliance pitfalls | Anti-Patterns |\n| Recent features (Backup Framework, Cross-Account) | Recent AWS features |\n\n## Critical rules at a glance (do NOT bury these)\n\n1. **Vault Lock compliance mode is IRREVERSIBLE.** Once a vault is\n   locked in compliance mode, the lock cannot be removed by anyone —\n   including the account root user. You cannot shorten the retention\n   period, you cannot delete recovery points, you cannot remove the\n   lock. The only path is waiting until each recovery point's retention\n   expires naturally. Choose compliance mode ONLY when you are certain\n   of the retention requirement.\n\n2. **Vault Lock governance mode allows privileged override.** A\n   principal with `backup:CancelLegalHold` can remove the lock and\n   delete recovery points. Governance mode is for internal policy\n   enforcement where operational flexibility is needed. It does NOT\n   meet regulatory immutability requirements (SEC 17a-4, CFTC, FINRA).\n\n3. **Recovery point encryption is SEPARATE from vault encryption.**\n   The vault has its own KMS encryption (for vault metadata). Each\n   recovery point is encrypted with a KMS key specified at backup job\n   creation time. A vault policy that does not enforce\n   `aws:ResourceTag\u002Fx-calculated-integrity` or equivalent does not\n   guarantee encrypted recovery points.\n\n4. **Backup plan coverage is NOT automatic.** A backup selection\n   targets resources by tags or resource IDs. A new resource without\n   the matching tag or explicit ID is NOT backed up. There is no\n   \"backup all resources\" option — coverage gaps are silent.\n\n5. **Cross-region replication is a COPY, not a separate backup.** The\n   replication is asynchronous and may lag behind the primary region.\n   A backup job that succeeds in the primary region may not yet be\n   replicated to the secondary region. Compliance verification must\n   check the COPY status, not just the original job status.\n\n## Pre-flight: data requirements\n\nDesigning a backup vault compliance workflow requires these inputs:\n\n| Input | Source | Why |\n|---|---|---|\n| All backup vaults | `list-backup-vaults` | Inventory of vaults to assess |\n| Vault policies | `get-backup-vault-policy` | Current access controls |\n| Vault lock configuration | `describe-backup-vault` (LockState) | Whether lock is active and in what mode |\n| Recovery points per vault | `list-recovery-points-by-backup-vault` | Encryption status and retention |\n| Backup plans and selections | `list-backup-plans`, `list-backup-selections` | Coverage scope |\n| Resources without backup | AWS Config + Backup audit | Coverage gap analysis |\n| Cross-region copy jobs | `list-copy-jobs` | Replication status |\n| KMS keys for backup | `kms describe-key` | Encryption key inventory |\n| Organizations backup config | `organizations list-delegated-administrators` | Multi-account setup |\n| Config rules for backup | `describe-config-rules` (backup-related) | Existing compliance monitoring |\n\n**If the input is malformed** (missing vault name, ambiguous lock\nmode), emit:\n\n```text\nCOMPLIANCE: \u003Creference>\nVAULT: \u003Cname or \"account-wide\">\nVERDICT: ERROR\nREASON: Cannot design backup vault compliance — vault inventory and lock-mode requirement are required inputs.\nGAP: Run list-backup-vaults and describe-backup-vault, then supply the compliance requirement (regulatory standard, retention period).\n```\n\n## Process — Backup vault compliance design (apply in order)\n\n### Step 0: Expert knowledge — non-obvious AWS Backup behaviors\n\nFull catalog: [Advanced patterns](references\u002Fadvanced-patterns.md) — cool-off semantics, policy-vs-lock, Backup Framework, cross-account prerequisites, job validation, lock-vs-IAM.\n\n### Step 1: Inventory the current backup state\n\nFull inventory commands: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n### Step 2: Enforce vault policy (deny non-encrypted backups)\n\nVault policy template that enforces encryption:\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"DenyUnencryptedBackups\",\n      \"Effect\": \"Deny\",\n      \"Principal\": {\"AWS\": \"*\"},\n      \"Action\": [\"backup:StartBackupJob\", \"backup:CopyIntoBackupVault\"],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"aws:ResourceTag\u002Fx-calculated-integrity\": \"ENCRYPTED\"\n        }\n      }\n    },\n    {\n      \"Sid\": \"DenyNonApprovedKMSKey\",\n      \"Effect\": \"Deny\",\n      \"Principal\": {\"AWS\": \"*\"},\n      \"Action\": [\"backup:StartBackupJob\", \"backup:CopyIntoBackupVault\"],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"kms:ViaService\": \"backup.us-east-1.amazonaws.com\"\n        }\n      }\n    },\n    {\n      \"Sid\": \"EnforceTLS\",\n      \"Effect\": \"Deny\",\n      \"Principal\": {\"AWS\": \"*\"},\n      \"Action\": \"backup:*\",\n      \"Resource\": \"*\",\n      \"Condition\": {\"Bool\": {\"aws:SecureTransport\": false}}\n    }\n  ]\n}\n```\n\nApply the policy:\n\n```bash\naws backup put-backup-vault-policy \\\n  --backup-vault-name prod-backup-vault \\\n  --policy file:\u002F\u002Fvault-policy.json \\\n  --region us-east-1\n```\n\nCross-account vault policy statement: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 3: Deploy Vault Lock (governance vs compliance mode)\n\n**THIS IS THE MOST CRITICAL DECISION IN BACKUP COMPLIANCE.**\n\n| Dimension | Governance Mode | Compliance Mode |\n|---|---|---|\n| Immutability | Soft — privileged override | Hard — no override, not even root |\n| Lock removal | `CancelLegalHold` by privileged principal | IMPOSSIBLE after cool-off |\n| Regulatory compliance | Does NOT meet SEC 17a-4, CFTC, FINRA | Meets SEC 17a-4, CFTC, FINRA |\n| Operational risk | Low — can correct mistakes | HIGH — cannot correct mistakes |\n\nDeploy governance mode:\n\n```bash\naws backup put-backup-vault-lock-configuration \\\n  --backup-vault-name prod-backup-vault \\\n  --changeable-for-days 3 --min-retention-days 1 --max-retention-days 365\n```\n\nDeploy compliance mode:\n\n```bash\naws backup put-backup-vault-lock-configuration \\\n  --backup-vault-name compliance-vault \\\n  --changeable-for-days 3 --min-retention-days 90 --max-retention-days 2557 --mode COMPLIANCE\n```\n\n**Critical warning:** `ChangeableForDays` sets the cool-off. During\ncool-off the lock CAN be removed. After expiry, compliance mode is\nPERMANENT. Before deploying: verify retention matches regulatory\nrequirements, verify vault contains only resources needing immutable\nretention, test in non-production first, document lock date.\n\nVerify: `aws backup describe-backup-vault --backup-vault-name \u003Cvault>\n--query '[LockState,MinRetentionDays,MaxRetentionDays,VaultLockDate]'`\n\n### Step 4: Verify recovery point encryption\n\nFor each recovery point, verify encryption key ARN is present and\nthe key is the approved one:\n\n```bash\naws backup list-recovery-points-by-backup-vault \\\n  --backup-vault-name prod-backup-vault \\\n  --output json \\\n  --region us-east-1\n```\n\nPer-recovery-point KMS verification script: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nIf violations are found, the vault policy (Step 2) should prevent\nfuture unencrypted backups. Existing unencrypted recovery points\nmust be either:\n1. Re-backed-up with encryption (if retention allows).\n2. Deleted and recreated (if not under Vault Lock).\n3. Documented as an exception (if under Vault Lock and cannot be\n   deleted).\n\n### Step 5: Audit backup plan coverage\n\nIdentify resources that lack backup plans:\n\nResource enumeration commands (EC2, RDS, DynamoDB, plans): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nCoverage audit logic: enumerate all EC2\u002FRDS\u002FDynamoDB\u002FEFS resources,\ncross-reference against backup plan selections (tag-based and\nexplicit-ID), and compute the gap. A coverage gap means the resource\nhas NO backup — typically a P1 finding for production.\n\n**Config rule for coverage detection:**\n\n```bash\naws configservice put-config-rule \\\n  --config-rule '{\n    \"ConfigRuleName\": \"backup-plan-coverage-check\",\n    \"Source\": {\n      \"Owner\": \"AWS\",\n      \"SourceIdentifier\": \"BACKUP_RECOVERY_POINT_MANUAL_DELETION_DISABLED\"\n    },\n    \"Scope\": {\"ComplianceResourceTypes\": [\"AWS::Backup::BackupPlan\"]}\n  }' \\\n  --region us-east-1\n```\n\nFor custom coverage checks (e.g., \"all EC2 instances tagged\nEnvironment=prod must have a backup plan\"), a custom Lambda Config\nrule is required. See **references\u002Fbackup-config-rules.md**.\n\n### Step 6: Validate cross-region backup replication\n\nCopy-job and destination-vault verification commands: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nReplication checklist: copy job `COMPLETED`, destination vault has\nrecovery points, destination KMS key is region-specific (not source\nkey ARN), recovery point ARN differs from source.\n\n### Step 7: Check backup frequency compliance\n\nVerify backups run at the required frequency via `list-backup-jobs`.\n\n| Resource tier | Required frequency | Required retention |\n|---|---|---|\n| Production critical (RPO \u003C 4h) | Every 4 hours | 30 days |\n| Production standard (RPO \u003C 24h) | Daily | 30-90 days |\n| Staging | Weekly | 14 days |\n| Development | On-demand | 7 days |\n\n### Step 8: Deploy Config rules for backup compliance\n\nAWS-managed Config rules for backup:\n\n| Rule | What it checks |\n|---|---|\n| `backup-plan-frequency` | Backup plans meet minimum frequency |\n| `backup-recovery-point-encrypted` | All recovery points are encrypted |\n| `backup-recovery-point-manual-deletion-disabled` | Vault Lock prevents manual deletion |\n| `backup-vaults-are-encrypted` | All backup vaults use KMS encryption |\n\n```bash\naws configservice put-config-rule \\\n  --config-rule '{\n    \"ConfigRuleName\": \"backup-recovery-point-encrypted\",\n    \"Source\": {\n      \"Owner\": \"AWS\",\n      \"SourceIdentifier\": \"backup-recovery-point-encrypted\"\n    }\n  }' \\\n  --region us-east-1\n```\n\nCustom coverage-rule deploy CLI: [Backup Config rules](references\u002Fbackup-config-rules.md).\n\nFor the full custom Config rule Lambda implementation including tag\nextraction, backup plan lookup, and compliance evaluation, see\n**references\u002Fbackup-config-rules.md**.\n\n### Step 9: Automate backup compliance reports\n\nReport-plan setup (daily compliance summary to S3): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 10: Multi-account backup compliance via Organizations\n\nDelegated administrator, org-level backup policy, Config aggregation: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 11: Manage Vault Lock cool-off period\n\n| Phase | Duration | What happens |\n|---|---|---|\n| Pre-lock | N\u002FA | Vault fully mutable |\n| Cool-off | `ChangeableForDays` (min 3) | Lock is `LOCKED` but CAN be removed |\n| Post-cool-off | Permanent | Compliance mode: IRREVERSIBLE. Governance: override-capable |\n\nChecklist: set `ChangeableForDays` to minimum (3), document lock date,\nverify retention during cool-off, confirm `LockState` post-expiry,\nverify `delete-backup-vault-lock-configuration` FAILS after cool-off\nin compliance mode.\n\n## Output format\n\n```text\nCOMPLIANCE: \u003Creference>\nVAULT: \u003Cname or \"account-wide\">\nPOLICY:\n  - Vault policy: \u003Cdeny-non-encrypted | open | custom>\n  - KMS enforcement: \u003Capproved key ARN>\nLOCK:\n  - Mode: GOVERNANCE | COMPLIANCE | UNLOCKED\n  - MinRetention: \u003Cdays>\n  - MaxRetention: \u003Cdays>\n  - CoolOff: \u003Cdays remaining or \"expired — permanent\">\nCOVERAGE:\n  - Total resources: \u003CN>\n  - Covered: \u003CN>\n  - Gap: \u003CN> resources without backup plan\nREPLICATION:\n  - Cross-region: \u003Cdestination region, status>\n  - Cross-account: \u003Cdestination account, status>\nVERDICT: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\nGAP: \u003Cif REVIEW_REQUIRED, the specific missing piece>\nTEMPLATE: \u003CCLI snippet or JSON for the compliance configuration>\n```\n\n### Worked example — AUTOMATION_DEPLOYED, full compliance vault\n\n```text\nCOMPLIANCE: prod-backup-compliance-baseline\nVAULT: prod-backup-vault\nPOLICY:\n  - Vault policy: deny-non-encrypted, enforce-approved-kms, enforce-tls\n  - KMS enforcement: arn:aws:kms:us-east-1:111111111111:key\u002Fprod-backup-key\nLOCK:\n  - Mode: COMPLIANCE\n  - MinRetention: 90 days\n  - MaxRetention: 2557 days (7 years)\n  - CoolOff: expired — permanent lock active\nCOVERAGE:\n  - Total resources: 85 (EC2=40, RDS=15, DynamoDB=20, EFS=10)\n  - Covered: 82 (by tag-based backup selection)\n  - Gap: 3 EC2 instances without BackupPlan tag\nREPLICATION:\n  - Cross-region: us-west-2, COMPLETED (last copy verified)\n  - Cross-account: N\u002FA (single account)\nVERDICT: AUTOMATION_DEPLOYED\nGAP: None (3 untagged EC2 instances flagged for tagging, Config rule deployed for continuous coverage check)\nTEMPLATE:\n  aws backup put-backup-vault-policy --backup-vault-name prod-backup-vault --policy file:\u002F\u002Fvault-policy.json\n  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\n  aws configservice put-config-rule --config-rule '{\"ConfigRuleName\":\"backup-recovery-point-encrypted\",\"Source\":{\"Owner\":\"AWS\",\"SourceIdentifier\":\"backup-recovery-point-encrypted\"}}'\n```\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER deploy compliance-mode Vault Lock without testing in\n  governance mode first. Compliance mode is IRREVERSIBLE — a\n  misconfigured retention period is a permanent problem.\n\n- NEVER assume governance mode meets regulatory requirements. It\n  allows privileged override and does NOT satisfy SEC 17a-4, CFTC\n  1.31, or FINRA 4511.\n\n- NEVER leave a backup vault without a policy. The default allows\n  any principal with `backup:*` to write unencrypted recovery points.\n\n- NEVER assume all resources are covered by backup plans. A new\n  resource without the matching tag is silently excluded. Always\n  deploy a coverage audit Config rule.\n\n- NEVER verify cross-region replication by checking only the source\n  region. Always verify in the DESTINATION region's vault — the copy\n  job may report `COMPLETED` but the recovery point may not be\n  visible yet.\n\n- NEVER use the same KMS key for source and destination regions.\n  KMS keys are region-specific. Using the source key ARN produces\n  `KMSNotFoundException` in the destination.\n\n- NEVER omit `ChangeableForDays` when deploying Vault Lock. Set it\n  explicitly and document the cool-off expiry date.\n\n- NEVER confuse vault encryption with recovery point encryption.\n  The vault has its own KMS key; each recovery point may use a\n  different key. Verify both independently.\n\n- NEVER deploy backup coverage using explicit resource IDs only.\n  Use tag-based selections (`ListOfTags`) for dynamic coverage.\n\n- NEVER forget that AWS Backup audit evaluates daily, not real-time.\n  For immediate alerting, use EventBridge on `Backup Job State Change`.\n\n- NEVER omit cross-account IAM trust. The destination vault policy\n  MUST include `aws:PrincipalAccount` for the source account.\n\n- NEVER assume backup report plans are sufficient for compliance\n  evidence. Supplement with CloudTrail queries and Config timeline.\n\n## Pre-flight safety checks (run before applying any vault compliance CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation,\n  emit: `CONFIRM: About to \u003Caction> for vault \u003Cvault> in account\n  \u003Caccount>. Compliance mode locks are IRREVERSIBLE. Proceed? (yes\u002Fno)`\n\n- **Back up the current vault policy** before modifying:\n  `aws backup get-backup-vault-policy --backup-vault-name \u003Cvault> > backup.json`\n\n- **Before deploying compliance-mode Vault Lock**, test in governance\n  mode first: deploy with same parameters, verify retention\u002Fpolicy\u002F\n  coverage, simulate recovery point lifecycle (create, verify deletion\n  is blocked), then deploy compliance mode.\n\n- **Before enabling cross-region replication**, verify destination\n  vault exists with correct policy, destination-region KMS key is\n  enabled, and backup plan copy config references correct vault\u002Fkey.\n\n- **For multi-account backup**, verify delegated administrator is\n  configured before deploying org-level policies.\n\n## Appendix A — Vault Lock mode decision tree\n\n```\nIs the vault subject to regulatory immutability requirements?\n├─ Yes (SEC 17a-4, CFTC, FINRA, HIPAA)\n│   └─ COMPLIANCE MODE\n│       - MinRetention: per regulatory minimum (e.g., 90d, 2557d)\n│       - MaxRetention: per regulatory maximum\n│       - ChangeableForDays: 3 (minimum)\n│       - COOL-OFF EXPIRY IS PERMANENT — verify all parameters before\n│       - Test in non-prod first\n└─ No\n    └─ Is operational flexibility needed (ability to override)?\n        ├─ Yes → GOVERNANCE MODE\n        │   - MinRetention: per internal policy\n        │   - MaxRetention: per internal policy\n        │   - Override requires backup:CancelLegalHold permission\n        └─ No → COMPLIANCE MODE (for defense-in-depth)\n            - Same as regulatory path\n            - Use when the organization wants immutability even without regulatory mandate\n```\n\n## References (load on demand)\n\n- [Worked examples](references\u002Fworked-examples.md) — full walkthroughs (REVIEW_REQUIRED governance-mode review)\n- [Error handling](references\u002Ferror-handling.md) — vault-policy and cross-region replication error tables and remedies\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — inventory, encryption verification, coverage enumeration, copy-job checks\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — non-obvious Backup behaviors, cross-account policy, reports, multi-account rollout, cost reference, recent features\n- [Backup Config rules](references\u002Fbackup-config-rules.md) — managed and custom Config rule implementations\n- [Vault Lock modes](references\u002Fvault-lock-modes.md) — full governance vs compliance mode reference and cost model\n\n## Domain\n\nAWS CloudOps \u002F Storage — AWS Backup vault compliance automation.\n\n## AWS documentation\n\n- **AWS Backup** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fwhatisbackup.html\n- **Backup Vault Lock** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fvaults.html#vault-lock\n- **Backup Vault Policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Faccess-control-overview.html\n- **AWS Backup Frameworks** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fframeworks.html\n- **AWS Config Rules for Backup** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fmonitoring-automated.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"aws-backup, vault-lock, backup-compliance, vault-policy, cross-region, config-rules, automate","4","Jacky Chan — AWS Community Builder","aws-cloudops","Storage","0.1.0","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","automate","high","false","capability","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.","true","AUTOMATION_DEPLOYED | REVIEW_REQUIRED","active","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\u002FLOCK\u002FCOVERAGE\u002FREPLICATION\u002FVERDICT — where VERDICT is AUTOMATION_DEPLOYED (templates ready) or REVIEW_REQUIRED (specific gap cited).","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","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...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fbackup-vault-compliance-automator",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill backup-vault-compliance-automator",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill backup-vault-compliance-automator",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill backup-vault-compliance-automator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",6501,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fbackup-coverage-audit.md",767,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fbaselines\u002Fbackup-coverage-audit.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fconfig-rule-compliance.md",953,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fbaselines\u002Fconfig-rule-compliance.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fcross-region-verification.md",800,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fbaselines\u002Fcross-region-verification.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fvault-lock-compliance-mode.md",822,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fbaselines\u002Fvault-lock-compliance-mode.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fvault-policy-enforcement.md",849,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fbaselines\u002Fvault-policy-enforcement.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1761,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4267,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fbackup-coverage-audit.md",732,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fprompts\u002Fbackup-coverage-audit.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fconfig-rule-compliance.md",856,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fprompts\u002Fconfig-rule-compliance.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fcross-region-verification.md",726,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fprompts\u002Fcross-region-verification.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fvault-lock-compliance-mode.md",803,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fprompts\u002Fvault-lock-compliance-mode.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fvault-policy-enforcement.md",765,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fevals\u002Fprompts\u002Fvault-policy-enforcement.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002Fend-to-end.md",7660,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fexamples\u002Fend-to-end.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",6624,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fbackup-config-rules.md",13369,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Freferences\u002Fbackup-config-rules.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fdiagnostic-commands.md",2803,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Freferences\u002Fdiagnostic-commands.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Ferror-handling.md",977,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Freferences\u002Ferror-handling.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fvault-lock-modes.md",6356,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Freferences\u002Fvault-lock-modes.md",{"path":144,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":145,"sourceHtmlUrl":146},"references\u002Fworked-examples.md",1364,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Freferences\u002Fworked-examples.md",{"path":148,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":149,"sourceHtmlUrl":150},"skill.usf.yaml",4624,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-compliance-automator\u002Fskill.usf.yaml",[152,159,166,173,180,187],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","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 \u002F method \u002F 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 \u002F 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 \u002F EKS \u002F 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.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","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.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","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 \u002F 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.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","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\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge 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.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","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\u002Fbypass 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.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","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.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]