[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AB3KT99G5AZDC4TBBYCM7R":3,"skill-same:01M7AB3KT99G5AZDC4TBBYCM7R":147},{"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},"01M7AB3KT99G5AZDC4TBBYCM7R","rds-snapshot-operator",null,"Operates Amazon RDS and Aurora snapshot workflows end-to-end — automated backup retention (1-35 days) and the PITR window, manual snapshot creation (pre-upgrade, compliance, audit), snapshot copy to DR regions (cross-region KMS re-encryption), point-in-time recovery at 5-minute granularity, cross-account snapshot sharing via DBSnapshotAttribute, snapshot restore (new instance vs Aurora clone), snapshot lifecycle automation (delete old via Lambda\u002FEventBridge), Aurora backtrack vs snapshot restore, Aurora clone from snapshot (instant copy-on-write), Blue\u002FGreen deploy with snapshot pre-flight, snapshot export to S3 (Parquet via ExportTask), snapshot size monitoring, and multi-AZ snapshot behavior. Runs deterministic pre-checks (instance state, storage type, option group compatibility, KMS key, IAM export role) behind a CONFIRM gate and emits OPERATION_COMPLETED or REVIEW_REQUIRED per operation. Use when creating pre-upgrade snapshots, configuring DR snapshot copies, restoring to a point in time, sharing...","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\u002Frds-snapshot-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rds-snapshot-operator\ndescription: Operates Amazon RDS and Aurora snapshot workflows end-to-end — automated backup retention (1-35 days) and the PITR window, manual snapshot creation (pre-upgrade, compliance, audit), snapshot copy to DR regions (cross-region KMS re-encryption), point-in-time recovery at 5-minute granularity, cross-account snapshot sharing via DBSnapshotAttribute, snapshot restore (new instance vs Aurora clone), snapshot lifecycle automation (delete old via Lambda\u002FEventBridge), Aurora backtrack vs snapshot restore, Aurora clone from snapshot (instant copy-on-write), Blue\u002FGreen deploy with snapshot pre-flight, snapshot export to S3 (Parquet via ExportTask), snapshot size monitoring, and multi-AZ snapshot behavior. Runs deterministic pre-checks (instance state, storage type, option group compatibility, KMS key, IAM export role) behind a CONFIRM gate and emits OPERATION_COMPLETED or REVIEW_REQUIRED per operation. Use when creating pre-upgrade snapshots, configuring DR snapshot copies, restoring to a point in time, sharing...\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws rds create-db-snapshot, copy-db-snapshot, delete-db-snapshot, describe-db-snapshots, modify-db-instance --backup-retention-period, restore-db-instance-to-point-in-time, restore-db-cluster-to-point-in-time, create-db-cluster-from-snapshot, share-db-snapshot, start-export-task, aws lambda, aws events (AWS CLI v2, SSO or key-based...\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: Databases\n  task_type: operate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: OPERATION_COMPLETED | REVIEW_REQUIRED\n  when_to_use: Creating a manual snapshot before an upgrade or maintenance window, changing automated backup retention (1-35 days), copying snapshots to a DR region, restoring to a point in time (5-minute granularity), sharing a snapshot cross-account, cloning an Aurora cluster from a snapshot, exporting snapshot data to S3 in Parquet format, automating snapshot lifecycle cleanup, or running a Blue\u002FGreen deploy with a snapshot pre-flight.\n  activation_triggers: create RDS snapshot, manual snapshot before upgrade, change backup retention, PITR restore, point-in-time recovery, copy snapshot to DR region, cross-region snapshot copy, share snapshot cross-account, restore from snapshot, Aurora clone from snapshot, Aurora backtrack, export snapshot to S3, snapshot lifecycle cleanup, delete old snapshots, Blue\u002FGreen deploy snapshot, snapshot size monitoring\n  invocation_schema: 'Input: either (a) an RDS instance\u002Fcluster configuration (describe-db- instance output) plus the intended operation (create-snapshot, copy-snapshot, restore-pitr, share-snapshot, clone-from-snapshot, export-snapshot, delete-snapshot, update-retention), OR (b) an instance\u002Fcluster identifier + operation for live-account execution. Output: deterministic OPERATION \u002F VERDICT \u002F PRE_CHECKS \u002F STEPS \u002F POST_VERIFY \u002F NOTES block per snapshot operation, where VERDICT is OPERATION_COMPLETED or REVIEW_REQUIRED.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: RDS snapshot, manual snapshot, automated backup, backup retention, PITR, point-in-time recovery, snapshot copy, cross-region snapshot, DR snapshot, snapshot sharing, cross-account snapshot, snapshot restore, Aurora clone, Aurora backtrack, Blue\u002FGreen deploy, snapshot export, S3 export Parquet, snapshot lifecycle, EventBridge snapshot, KMS re-encryption, DBSnapshotAttribute\n  tags: aws, rds, aurora, database, snapshot, backup, recovery, dr, compliance, operate\n---\n\n# RDS Snapshot Operator\n\n## What this skill does\n\nExecutes RDS and Aurora snapshot operations correctly and safely. Runs\ndeterministic pre-checks before any state-changing CLI (instance state,\nstorage type, option group and parameter group compatibility, KMS key\navailability, IAM export role permissions, snapshot age for lifecycle\ndeletion), executes the operation behind a CONFIRM gate, and verifies the\nresult by confirming the snapshot reached `available` status and the\ntarget resource is accessible. Every create-snapshot operation produces a\nsize estimate and completion-time expectation; every restore operation\nsurfaces the instance-class mismatch and SG\u002Foption-group caveats so the\noperator knows what to adjust post-restore.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + pre-check priority | Before any operation |\n| **§ Mindset** | Automated backup = PITR window, manual snapshots persist, Aurora clone is instant | Understanding the safety model |\n| **§ Pre-flight** | Instance\u002Fcluster metadata gate — state, storage, KMS, option group | Before executing any CLI |\n| **§ Process** | Per-operation planning: create, copy, restore, share, clone, export, delete, retention | When choosing which operation to run |\n| **§ Output format** | Structured OPERATION\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY template | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes that lose data or break restores | Review before risky operations |\n| **§ Pre-flight safety** | Capture pre-state, snapshot verification, KMS policy | Defense-in-depth |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `OPERATION_COMPLETED` | Snapshot operation finished and post-verification passed (snapshot `available`, restore instance `available`, export task `complete`, copy reached source region) | Emit verification results, monitoring plan |\n| `REVIEW_REQUIRED` | Operation plan is ready but requires human review before execution (PITR restore creates new instance, cross-region copy needs KMS re-encryption review, lifecycle deletion of compliance-hold snapshots, Blue\u002FGreen deploy pre-flight) | Emit plan with the specific items to review, wait for operator approval |\n\n**Priority order for pre-checks (apply in this sequence):**\n\n1. **Instance\u002Fcluster reachability** — target exists, `available` or\n   `backing-up` (for create-snapshot), NOT `deleting` or `failed`.\n2. **Storage type compatibility** — for `io1`\u002F`io2` volumes, IOPS must be\n   provisioned on restore; for `gp3`, throughput settings carry over.\n3. **Option group compatibility** — restore creates a new instance with the\n   DEFAULT option group unless explicitly specified; custom option groups\n   (TDE, SSL, OEM) must be provided or the restore fails or data is\n   unreadable.\n4. **KMS key** — encrypted instances require the KMS key to be available in\n   both source and target regions (cross-region copy re-encrypts with a\n   target-region key).\n5. **Network reachability** — restore creates a new instance with a DEFAULT\n   security group unless VPC security groups are specified.\n6. **Snapshot retention** — automated backups (PITR) are deleted with the\n   instance; manual snapshots persist until explicitly deleted.\n\n**Cost\u002Ftime baselines (2026):**\n\n- Manual snapshot creation: varies by storage size. 100 GB: ~2-5 minutes.\n  1 TB: ~15-30 minutes. Snapshot is incremental at the storage layer but\n  the API call returns immediately; `Status: creating` -> `available`.\n- Cross-region copy: 100 GB: ~10-30 minutes (depends on inter-region\n  bandwidth). 1 TB: ~1-3 hours.\n- PITR restore: creates a new instance; duration proportional to the\n  allocated storage. 500 GB: ~20-45 minutes. Aurora: faster due to\n  distributed storage.\n- Aurora clone from snapshot: near-instant (seconds) because Aurora clones\n  use copy-on-write at the storage layer — no data copy.\n- S3 export (Parquet): 100 GB: ~30-60 minutes. Charged per GB exported.\n- Snapshot storage cost: $0.095\u002FGB-month for manual snapshots (us-east-1).\n\n## Mindset\n\n**One-line takeaway:** Automated backup retention (1-35 days) defines the\nPITR window; manual snapshots persist beyond instance deletion and are the\ncompliance baseline. Aurora clones are instant (copy-on-write). Driven by\nthree RDS realities:\n\n- **Automated backups are ephemeral; manual snapshots are permanent.**\n  Setting `BackupRetentionPeriod: 7` means RDS retains 7 days of\n  transaction logs for PITR. Delete the instance and the automated\n  backups are gone. Manual snapshots (`create-db-snapshot`) persist\n  indefinitely until explicitly deleted — they are the compliance and DR\n  baseline. A common mistake is relying solely on automated backups for\n  DR; the instance is deleted, and there is no recovery point.\n\n- **Aurora clone from snapshot is instant; RDS restore is not.** Aurora's\n  distributed storage layer supports copy-on-write clones — a new cluster\n  from a snapshot takes seconds, not hours, regardless of data size. RDS\n  (non-Aurora) restore copies the full backup to a new EBS volume,\n  proportional to allocated storage. Knowing which engine is in use\n  determines the time estimate and whether the operation can be done\n  in-window.\n\n- **PITR granularity is 5 minutes for RDS, 1 second for Aurora.** RDS\n  records transaction logs every 5 minutes; Aurora uses a continuous\n  backup stream. When a user says \"restore to 2:47 PM,\" Aurora can do it\n  to the second; RDS rounds to the nearest 5-minute boundary. This is\n  critical for recovery objectives and must be surfaced in the plan.\n\n## Pre-flight: instance\u002Fcluster metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n**Pagination:** `describe-db-snapshots` paginates at 100\u002Fpage — drain\n`--starting-token` to completion. `describe-db-instances` paginates at\n100\u002Fpage.\n\nSix live-account pre-flight commands (instance metadata, existing manual snapshots, engine versions, KMS key state, option groups, export IAM role): moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nThe attribute table below maps the captured fields to plan effects.\n\n**Malformed input:** if the input JSON is invalid or missing required\nfields, emit `VERDICT: ERROR` with `REASON: Instance\u002Fcluster configuration\nis not valid JSON or is missing required fields — cannot plan.` and\n`REMEDIATION: Re-fetch with aws rds describe-db-instances --db-instance-\nidentifier \u003Cid> --output json and re-plan.`\n\n| Instance attribute | Effect on operation |\n|---|---|\n| `DBInstanceStatus: deleting` | Instance is being deleted. All snapshot operations BLOCKED except describe. |\n| `DBInstanceStatus: modifying` | Instance is being modified. create-snapshot BLOCKED until modification completes. |\n| `DeletionProtection: true` | delete-snapshot still works (protection is on the instance, not snapshots); deleting the INSTANCE is blocked. |\n| `BackupRetentionPeriod: 0` | Automated backups disabled. No PITR. Manual snapshots still work. Restore-to-point-in-time BLOCKED. |\n| `Encrypted: true` | Cross-region copy requires a target-region KMS key. Cross-account sharing requires the target account's KMS key to be shared or re-encrypted. |\n| `MultiAZ: true` | Snapshots are taken from the standby AZ to minimize performance impact on the primary. |\n| `Engine: aurora-mysql` or `aurora-postgresql` | Use cluster-level APIs (`create-db-cluster-snapshot`, `restore-db-cluster-to-point-in-time`), not instance-level. Clones are instant. |\n| `StorageType: io1` | Restore requires specifying IOPS; snapshot does not capture provisioned IOPS for non-Aurora. |\n| `LatestRestorableTime: null` | Automated backups not yet available or `BackupRetentionPeriod: 0`. PITR BLOCKED. |\n| `AllocatedStorage` large (> 1 TB) | Snapshot creation and restore take 30+ minutes. Plan for maintenance window. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious RDS snapshot behaviors\n\nSixteen non-obvious RDS snapshot behaviors (retention defines the PITR window, manual snapshot persistence, instant Aurora clones, PITR granularity, KMS region-scoping, option-group reset, allocated-storage billing, backtrack vs restore, Blue\u002FGreen safety net, S3 ExportTask, lifecycle automation, final snapshots, DLM\u002FAWS Backup, DeletionProtection scope): moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad before planning any operation; Steps 1-4 assume these constraints.\n\n### Step 1: Pre-check gate — REVIEW_REQUIRED if any check needs human attention\n\nRun ALL pre-checks for the chosen operation. If any check requires human\nreview (not a hard BLOCK), the verdict is REVIEW_REQUIRED with the review\nitems listed.\n\n**For ALL operations:**\n1. Instance\u002Fcluster exists (`describe-db-instances` does not return\n   `DBInstanceNotFoundFault`).\n2. Instance is NOT in `deleting` or `failed` state.\n3. KMS key (if encrypted) is `Enabled`.\n\n**For create-snapshot (`create-db-snapshot` \u002F `create-db-cluster-snapshot`):**\n4. Instance is in `available` or `backing-up` state (creating a manual\n   snapshot during `backing-up` queues it).\n5. No manual snapshot with the same identifier already exists.\n6. For Aurora: use `create-db-cluster-snapshot`, NOT the instance-level\n   API.\n\n**For copy-snapshot (`copy-db-snapshot`):**\n4. Source snapshot is `available`.\n5. For cross-region: target region KMS key specified and `Enabled`.\n6. For cross-account source: the sharing account has called\n   `modify-db-snapshot-attribute --attribute-name restore --values-to-add\n   \u003Caccount-id>` and the KMS key policy grants `kms:Decrypt`.\n\n**For restore-pitr (`restore-db-instance-to-point-in-time`):**\n4. `BackupRetentionPeriod >= 1` (automated backups enabled).\n5. `LatestRestorableTime` is not null.\n6. Target restore time is within `[EarliestRestorableTime,\n   LatestRestorableTime]`.\n7. Option group specified (review needed if source uses custom options).\n8. Security groups specified (review needed if VPC topology changed).\n9. Verdict is REVIEW_REQUIRED (creates a new instance with a new endpoint).\n\n**For clone-from-snapshot (Aurora only):**\n4. Source snapshot is a cluster snapshot (`DBClusterSnapshot`), not an\n   instance snapshot.\n5. Engine is `aurora-mysql` or `aurora-postgresql`.\n6. Clone is near-instant (copy-on-write); size is not a time factor.\n\n**For share-snapshot (`modify-db-snapshot-attribute`):**\n4. Snapshot is `available`.\n5. For encrypted snapshots: KMS key policy grants target account\n   `kms:CreateGrant` and `kms:Decrypt`.\n6. Target account ID is valid (12 digits).\n\n**For export-snapshot (`start-export-task`):**\n4. Snapshot is `available`.\n5. S3 bucket exists and the IAM role has `s3:PutObject` on the bucket ARN.\n6. IAM role trust policy allows `export.rds.amazonaws.com`.\n7. KMS key for export (if specified) is `Enabled`.\n\n**For delete-snapshot (`delete-db-snapshot`):**\n4. Snapshot is `available` (cannot delete while `creating` or `copying`).\n5. Snapshot is NOT tagged `DoNotDelete: true` (compliance hold).\n6. For automated lifecycle: confirm the snapshot is beyond the retention\n   window.\n7. Verdict is REVIEW_REQUIRED for compliance-hold or audit-sensitive\n   snapshots.\n\n**For update-retention (`modify-db-instance --backup-retention-period`):**\n4. New retention is in [1, 35].\n5. If decreasing retention: confirm no compliance requirement for the\n   longer window.\n6. If increasing retention: note that RDS does NOT backfill logs for the\n   new period.\n\n### Step 2: OPERATION_COMPLETED or REVIEW_REQUIRED — emit operation plan\n\nIf all pre-checks pass and the operation is straightforward (create,\ncopy, clone, export, share), emit `VERDICT: OPERATION_COMPLETED` (for\nalready-executed verification scenarios) or the plan leading to\ncompletion. For operations requiring human review (restore-pitr,\ndelete-snapshot with compliance concerns, Blue\u002FGreen pre-flight), emit\n`VERDICT: REVIEW_REQUIRED` with the specific items to review.\n\nThe plan includes:\n- The exact AWS CLI command with all flags populated from the instance\n  configuration.\n- The expected duration (snapshot: 2-30 minutes depending on size; Aurora\n  clone: seconds; PITR restore: 20-45 minutes; export: 30-60 minutes).\n- The expected side-effects (new snapshot in `available`, new instance in\n  `available`, S3 objects in Parquet format).\n- The CONFIRM gate prompt.\n- The monitoring step (describe-db-snapshots to watch status transition).\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-db-snapshot`, `copy-db-snapshot`, `delete-db-snapshot`,\n  `restore-db-instance-to-point-in-time`,\n  `restore-db-cluster-to-point-in-time`,\n  `create-db-cluster-from-snapshot`, `start-export-task`,\n  `modify-db-snapshot-attribute`, `modify-db-instance\n  --backup-retention-period`), emit:\n  `CONFIRM: About to \u003Coperation> on \u003Cinstance\u002Fcluster\u002Fsnapshot> in\n  account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed?\n  (yes\u002Fno)`. Do NOT execute until the operator confirms.\n- Capture pre-state: `aws rds describe-db-instances --db-instance-\n  identifier \u003Cid> --output json > \u002Ftmp\u002F\u003Cid>-pre-$(date +%s).json`.\n- Execute the CLI. For snapshot creation, the API returns immediately;\n  the snapshot transitions `creating` -> `available`.\n- Monitor: `aws rds describe-db-snapshots --db-snapshot-identifier \u003Csnap>\n  --query 'DBSnapshots[0].Status'`.\n\n### Step 4: Post-verification — OPERATION_COMPLETED\n\nAfter the operation finishes, run post-verification. ALL checks must pass\nfor `OPERATION_COMPLETED`.\n\n1. `describe-db-snapshots --db-snapshot-identifier \u003Csnap>` — confirm\n   `Status: available`.\n2. For restore: `describe-db-instances --db-instance-identifier \u003Cnew-id>`\n   — confirm `DBInstanceStatus: available`.\n3. For copy: confirm the snapshot appears in the target region\n   (`describe-db-snapshots --region \u003Ctarget-region>`).\n4. For export: `describe-export-tasks --export-task-identifier \u003Ctask>` —\n   confirm `Status: COMPLETE` and S3 objects exist.\n5. For share: target account confirms visibility via\n   `describe-db-snapshots --include-shared --snapshot-type shared`.\n6. For clone (Aurora): `describe-db-clusters --db-cluster-identifier\n  \u003Cnew-cluster>` — confirm `Status: available`.\n\nIf ANY verification fails, emit `VERDICT: ERROR` with the failure details\n— do not claim OPERATION_COMPLETED.\n\n## Output format (per operation)\n\n```text\nOPERATION: \u003Ccreate-snapshot | copy-snapshot | restore-pitr | share-snapshot | clone-from-snapshot | export-snapshot | delete-snapshot | update-retention>\nVERDICT: OPERATION_COMPLETED | REVIEW_REQUIRED\nTARGET: \u003Cinstance-or-cluster-id> (snapshot: \u003Csnap-id-or-\"none\">)\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [REVIEW] \u003Ccheck description> — \u003Citem requiring human attention>\nSTEPS:\n  1. \u003CCLI command with flags populated>\n  2. \u003Cwait \u002F monitoring command>\n  3. \u003Cnext step>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nNOTES: \u003Cschedule, monitoring, caveats>\n```\n\n### Worked example — create-snapshot (pre-upgrade)\n\n```text\nOPERATION: create-snapshot\nVERDICT: OPERATION_COMPLETED\nTARGET: prod-orders-db (snapshot: prod-orders-db-pre-upgrade-20260805)\nPRE_CHECKS:\n  - [PASS] Instance prod-orders-db exists, Status: available\n  - [PASS] No existing snapshot with identifier\n    prod-orders-db-pre-upgrade-20260805\n  - [PASS] AllocatedStorage: 500 GB (estimated snapshot time: 10-20 min)\n  - [PASS] Encrypted: true, KMS key\n    arn:aws:kms:us-east-1:111111111111:key\u002Forders-cmk Enabled\nSTEPS:\n  1. CONFIRM: About to create manual snapshot\n     prod-orders-db-pre-upgrade-20260805 on instance prod-orders-db in\n     account 111111111111 region us-east-1. This will take ~10-20 minutes.\n     Proceed? (yes\u002Fno)\n  2. aws rds create-db-snapshot \\\n       --db-instance-identifier prod-orders-db \\\n       --db-snapshot-identifier prod-orders-db-pre-upgrade-20260805\n  3. aws rds describe-db-snapshots \\\n       --db-snapshot-identifier prod-orders-db-pre-upgrade-20260805 \\\n       --query 'DBSnapshots[0].Status'\nPOST_VERIFY:\n  - [PASS] Snapshot Status: available\n  - [PASS] Snapshot Encrypted: true (KMS key matches source)\n  - [PASS] AllocatedStorage: 500 GB (matches source)\nNOTES:\n  - This snapshot is the pre-upgrade recovery point. If the upgrade\n    fails, restore from this snapshot:\n    aws rds restore-db-instance-from-db-snapshot \\\n      --db-instance-identifier prod-orders-db-restored \\\n      --db-snapshot-identifier prod-orders-db-pre-upgrade-20260805 \\\n      --db-instance-class db.r6g.xlarge \\\n      --option-group-name prod-orders-options \\\n      --vpc-security-group-ids sg-prod-rds\n  - Manual snapshots persist beyond instance deletion. Tag this\n    snapshot: aws rds add-tags-to-resource \\\n      --resource-name arn:aws:rds:us-east-1:111111111111:snapshot:prod-orders-db-pre-upgrade-20260805 \\\n      --tags Key=DoNotDelete,Value=true Key=Purpose,Value=pre-upgrade\n```\n\n### Worked example — Aurora clone from snapshot\n\nFull worked example (Aurora clone: cluster restore plus instance creation, copy-on-write notes): moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nApply the Output format template above to reproduce it.\n\n### Worked example — PITR restore (REVIEW_REQUIRED)\n\nFull worked example (PITR restore with REVIEW_REQUIRED items and cutover notes): moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nApply the Output format template above to reproduce it.\n\n### Worked example — cross-region copy (DR)\n\nFull worked example (encrypted cross-region copy with DR KMS re-encryption): moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nApply the Output format template above to reproduce it.\n\n### Worked example — snapshot lifecycle cleanup\n\nFull worked example (lifecycle cleanup skipping compliance-hold snapshots): moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nApply the Output format template above to reproduce it.\n\n## Anti-Patterns — NEVER\n\n- NEVER delete an RDS instance without a final snapshot\n  (`--skip-final-snapshot`) in production environments. Manual snapshots\n  persist beyond deletion; automated backups do not. The final snapshot\n  is the last-chance recovery point.\n\n- NEVER assume automated backups replace manual snapshots for DR. Setting\n  `BackupRetentionPeriod: 35` gives you a 35-day PITR window, but deleting\n  the instance destroys ALL automated backups. Manual snapshots are the\n  only snapshot type that survives instance deletion.\n\n- NEVER restore a PITR or snapshot without specifying the option group.\n  The DEFAULT option group does not include TDE, SSL, OEM, or other\n  custom options. The restored data may be unreadable (TDE) or\n  inaccessible (SSL) without the correct option group.\n\n- NEVER assume PITR granularity is better than 5 minutes for RDS\n  (non-Aurora). RDS transaction logs are 5-minute snapshots. Aurora\n  supports second-level granularity. If the recovery objective requires\n  sub-5-minute precision, the engine must be Aurora.\n\n- NEVER confuse Aurora backtrack with snapshot restore. Backtrack rewinds\n  the cluster in-place within the backtrack window (up to 72 hours).\n  Snapshot restore creates a NEW cluster. Use backtrack for rapid logical\n  rollback; use snapshot restore for DR and cross-region recovery.\n\n- NEVER copy an encrypted snapshot cross-region without specifying a\n  target-region KMS key. KMS keys are region-scoped; the copy fails\n  without a target key. The source key cannot be referenced from another\n  region.\n\n- NEVER assume `DeletionProtection: true` protects snapshots. It protects\n  the INSTANCE from deletion (and thus preserves automated backups).\n  Manual snapshots can still be deleted with `delete-db-snapshot` even\n  if the source instance has DeletionProtection.\n\n- NEVER share an encrypted snapshot cross-account without also sharing the\n  KMS key. The target account cannot decrypt the snapshot without\n  `kms:Decrypt` on the source key. Use a key policy grant or KMS grants.\n\n- NEVER set `BackupRetentionPeriod: 0` on a production instance. This\n  disables ALL automated backups and immediately deletes existing\n  transaction logs. PITR is permanently lost. There is no confirmation\n  prompt — the setting takes effect immediately.\n\n- NEVER assume a snapshot is small because the database is small. RDS\n  snapshot billing is based on ALLOCATED storage, not used storage. A\n  1 TB EBS volume with 10 GB of data costs the same to snapshot as a\n  full 1 TB.\n\n- NEVER skip the CONFIRM gate for `delete-db-snapshot`. Snapshot deletion\n  is irreversible. There is no recycle bin or version history. Verify the\n  snapshot is not compliance-hold or part of a DR plan before confirming.\n\n- NEVER assume increasing `BackupRetentionPeriod` backfills historical\n  logs. Changing from 7 to 35 days starts retaining 35 days FROM THE\n  CHANGE TIME FORWARD. The previous 7-day window is not extended\n  retroactively.\n\n- NEVER use instance-level APIs for Aurora clusters. Aurora uses cluster-\n  level APIs (`create-db-cluster-snapshot`, `restore-db-cluster-to-point-\n  in-time`, `restore-db-cluster-from-snapshot`). Instance-level APIs\n  fail or create inconsistent state.\n\n- NEVER export a snapshot to S3 without verifying the IAM role trust\n  policy. The export service (`export.rds.amazonaws.com`) must be in the\n  trust policy, or the export task fails immediately with\n  `AccessDeniedException`.\n\n- NEVER assume Aurora clone takes the same time as RDS restore. Aurora\n  clones are instant (copy-on-write at the storage layer). RDS restores\n  are proportional to allocated storage. Knowing the engine determines\n  whether a maintenance window is needed.\n\n- NEVER run a Blue\u002FGreen deploy without a pre-deploy manual snapshot.\n  The snapshot is the rollback path if the green environment has issues\n  post-switch. Without it, rollback requires PITR (5-minute granularity\n  for RDS, with potential data loss).\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nSix pre-flight safety checks (CONFIRM gate, pre-state capture, KMS verification, option group on restore, network topology, additive-over-destructive): moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nDefense-in-depth before any remediation CLI.\n\n## Recent AWS features (2024-2026)\n\nTen recent AWS features 2024-2026 (cross-account clones, Blue\u002FGreen GA, ExportOnly filtering, 35-day retention, 72-hour backtrack, AWS Backup integration, Parquet compression, storage auto-scaling, DLM KMS re-encryption, CloudWatch RUM): moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nConsult before citing feature limits or recency.\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — Secondary worked examples (Aurora clone, PITR restore, cross-region DR copy, lifecycle cleanup).\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 non-obvious snapshot behaviors, recent AWS features (2024-2026).\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Live-account pre-flight commands, pre-flight safety checks.\n- [references\u002Fsnapshot-restore-procedures.md](references\u002Fsnapshot-restore-procedures.md) — Per-operation CLI procedures (create, copy, restore, clone, share, export, delete, retention).\n- [references\u002Fsnapshot-lifecycle-automation.md](references\u002Fsnapshot-lifecycle-automation.md) — Lambda\u002FEventBridge cleanup, DLM and AWS Backup DR pipelines.\n\n## Domain\n\nAWS CloudOps \u002F RDS & Aurora Snapshot Management, Backup Retention, DR &\nCompliance.\n\n## AWS documentation\n\n- **Amazon RDS User Guide — Backing up and restoring** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FCHAP_CommonTasks.BackupRestore.html\n- **Creating a DB snapshot** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_CreateSnapshot.html\n- **Restoring from a DB snapshot** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_RestoreFromSnapshot.html\n- **Point-in-time recovery** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_PIT.html\n- **Copying a snapshot** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_CopySnapshot.html\n- **Sharing a snapshot** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_ShareSnapshot.html\n- **Exporting snapshot data to Amazon S3** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_ExportSnapshot.html\n- **Amazon Aurora cloning** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAuroraUserGuide\u002FAurora.Managing.Clone.html\n- **Amazon Aurora backtrack** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAuroraUserGuide\u002FAuroraMySQL.Managing.Backtrack.html\n- **RDS Blue\u002FGreen Deployments** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002Fblue-green-deployments.html\n- **RDS API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAPIReference\u002F\n","# RDS Snapshot Operator\n\n## What this skill does\n\nExecutes RDS and Aurora snapshot operations correctly and safely. Runs\ndeterministic pre-checks before any state-changing CLI (instance state,\nstorage type, option group and parameter group compatibility, KMS key\navailability, IAM export role permissions, snapshot age for lifecycle\ndeletion), executes the operation behind a CONFIRM gate, and verifies the\nresult by confirming the snapshot reached `available` status and the\ntarget resource is accessible. Every create-snapshot operation produces a\nsize estimate and completion-time expectation; every restore operation\nsurfaces the instance-class mismatch and SG\u002Foption-group caveats so the\noperator knows what to adjust post-restore.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + pre-check priority | Before any operation |\n| **§ Mindset** | Automated backup = PITR window, manual snapshots persist, Aurora clone is instant | Understanding the safety model |\n| **§ Pre-flight** | Instance\u002Fcluster metadata gate — state, storage, KMS, option group | Before executing any CLI |\n| **§ Process** | Per-operation planning: create, copy, restore, share, clone, export, delete, retention | When choosing which operation to run |\n| **§ Output format** | Structured OPERATION\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY template | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes that lose data or break restores | Review before risky operations |\n| **§ Pre-flight safety** | Capture pre-state, snapshot verification, KMS policy | Defense-in-depth |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `OPERATION_COMPLETED` | Snapshot operation finished and post-verification passed (snapshot `available`, restore instance `available`, export task `complete`, copy reached source region) | Emit verification results, monitoring plan |\n| `REVIEW_REQUIRED` | Operation plan is ready but requires human review before execution (PITR restore creates new instance, cross-region copy needs KMS re-encryption review, lifecycle deletion of compliance-hold snapshots, Blue\u002FGreen deploy pre-flight) | Emit plan with the specific items to review, wait for operator approval |\n\n**Priority order for pre-checks (apply in this sequence):**\n\n1. **Instance\u002Fcluster reachability** — target exists, `available` or\n   `backing-up` (for create-snapshot), NOT `deleting` or `failed`.\n2. **Storage type compatibility** — for `io1`\u002F`io2` volumes, IOPS must be\n   provisioned on restore; for `gp3`, throughput settings carry over.\n3. **Option group compatibility** — restore creates a new instance with the\n   DEFAULT option group unless explicitly specified; custom option groups\n   (TDE, SSL, OEM) must be provided or the restore fails or data is\n   unreadable.\n4. **KMS key** — encrypted instances require the KMS key to be available in\n   both source and target regions (cross-region copy re-encrypts with a\n   target-region key).\n5. **Network reachability** — restore creates a new instance with a DEFAULT\n   security group unless VPC security groups are specified.\n6. **Snapshot retention** — automated backups (PITR) are deleted with the\n   instance; manual snapshots persist until explicitly deleted.\n\n**Cost\u002Ftime baselines (2026):**\n\n- Manual snapshot creation: varies by storage size. 100 GB: ~2-5 minutes.\n  1 TB: ~15-30 minutes. Snapshot is incremental at the storage layer but\n  the API call returns immediately; `Status: creating` -> `available`.\n- Cross-region copy: 100 GB: ~10-30 minutes (depends on inter-region\n  bandwidth). 1 TB: ~1-3 hours.\n- PITR restore: creates a new instance; duration proportional to the\n  allocated storage. 500 GB: ~20-45 minutes. Aurora: faster due to\n  distributed storage.\n- Aurora clone from snapshot: near-instant (seconds) because Aurora clones\n  use copy-on-write at the storage layer — no data copy.\n- S3 export (Parquet): 100 GB: ~30-60 minutes. Charged per GB exported.\n- Snapshot storage cost: $0.095\u002FGB-month for manual snapshots (us-east-1).\n\n## Mindset\n\n**One-line takeaway:** Automated backup retention (1-35 days) defines the\nPITR window; manual snapshots persist beyond instance deletion and are the\ncompliance baseline. Aurora clones are instant (copy-on-write). Driven by\nthree RDS realities:\n\n- **Automated backups are ephemeral; manual snapshots are permanent.**\n  Setting `BackupRetentionPeriod: 7` means RDS retains 7 days of\n  transaction logs for PITR. Delete the instance and the automated\n  backups are gone. Manual snapshots (`create-db-snapshot`) persist\n  indefinitely until explicitly deleted — they are the compliance and DR\n  baseline. A common mistake is relying solely on automated backups for\n  DR; the instance is deleted, and there is no recovery point.\n\n- **Aurora clone from snapshot is instant; RDS restore is not.** Aurora's\n  distributed storage layer supports copy-on-write clones — a new cluster\n  from a snapshot takes seconds, not hours, regardless of data size. RDS\n  (non-Aurora) restore copies the full backup to a new EBS volume,\n  proportional to allocated storage. Knowing which engine is in use\n  determines the time estimate and whether the operation can be done\n  in-window.\n\n- **PITR granularity is 5 minutes for RDS, 1 second for Aurora.** RDS\n  records transaction logs every 5 minutes; Aurora uses a continuous\n  backup stream. When a user says \"restore to 2:47 PM,\" Aurora can do it\n  to the second; RDS rounds to the nearest 5-minute boundary. This is\n  critical for recovery objectives and must be surfaced in the plan.\n\n## Pre-flight: instance\u002Fcluster metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n**Pagination:** `describe-db-snapshots` paginates at 100\u002Fpage — drain\n`--starting-token` to completion. `describe-db-instances` paginates at\n100\u002Fpage.\n\nSix live-account pre-flight commands (instance metadata, existing manual snapshots, engine versions, KMS key state, option groups, export IAM role): moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nThe attribute table below maps the captured fields to plan effects.\n\n**Malformed input:** if the input JSON is invalid or missing required\nfields, emit `VERDICT: ERROR` with `REASON: Instance\u002Fcluster configuration\nis not valid JSON or is missing required fields — cannot plan.` and\n`REMEDIATION: Re-fetch with aws rds describe-db-instances --db-instance-\nidentifier \u003Cid> --output json and re-plan.`\n\n| Instance attribute | Effect on operation |\n|---|---|\n| `DBInstanceStatus: deleting` | Instance is being deleted. All snapshot operations BLOCKED except describe. |\n| `DBInstanceStatus: modifying` | Instance is being modified. create-snapshot BLOCKED until modification completes. |\n| `DeletionProtection: true` | delete-snapshot still works (protection is on the instance, not snapshots); deleting the INSTANCE is blocked. |\n| `BackupRetentionPeriod: 0` | Automated backups disabled. No PITR. Manual snapshots still work. Restore-to-point-in-time BLOCKED. |\n| `Encrypted: true` | Cross-region copy requires a target-region KMS key. Cross-account sharing requires the target account's KMS key to be shared or re-encrypted. |\n| `MultiAZ: true` | Snapshots are taken from the standby AZ to minimize performance impact on the primary. |\n| `Engine: aurora-mysql` or `aurora-postgresql` | Use cluster-level APIs (`create-db-cluster-snapshot`, `restore-db-cluster-to-point-in-time`), not instance-level. Clones are instant. |\n| `StorageType: io1` | Restore requires specifying IOPS; snapshot does not capture provisioned IOPS for non-Aurora. |\n| `LatestRestorableTime: null` | Automated backups not yet available or `BackupRetentionPeriod: 0`. PITR BLOCKED. |\n| `AllocatedStorage` large (> 1 TB) | Snapshot creation and restore take 30+ minutes. Plan for maintenance window. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious RDS snapshot behaviors\n\nSixteen non-obvious RDS snapshot behaviors (retention defines the PITR window, manual snapshot persistence, instant Aurora clones, PITR granularity, KMS region-scoping, option-group reset, allocated-storage billing, backtrack vs restore, Blue\u002FGreen safety net, S3 ExportTask, lifecycle automation, final snapshots, DLM\u002FAWS Backup, DeletionProtection scope): moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad before planning any operation; Steps 1-4 assume these constraints.\n\n### Step 1: Pre-check gate — REVIEW_REQUIRED if any check needs human attention\n\nRun ALL pre-checks for the chosen operation. If any check requires human\nreview (not a hard BLOCK), the verdict is REVIEW_REQUIRED with the review\nitems listed.\n\n**For ALL operations:**\n1. Instance\u002Fcluster exists (`describe-db-instances` does not return\n   `DBInstanceNotFoundFault`).\n2. Instance is NOT in `deleting` or `failed` state.\n3. KMS key (if encrypted) is `Enabled`.\n\n**For create-snapshot (`create-db-snapshot` \u002F `create-db-cluster-snapshot`):**\n4. Instance is in `available` or `backing-up` state (creating a manual\n   snapshot during `backing-up` queues it).\n5. No manual snapshot with the same identifier already exists.\n6. For Aurora: use `create-db-cluster-snapshot`, NOT the instance-level\n   API.\n\n**For copy-snapshot (`copy-db-snapshot`):**\n4. Source snapshot is `available`.\n5. For cross-region: target region KMS key specified and `Enabled`.\n6. For cross-account source: the sharing account has called\n   `modify-db-snapshot-attribute --attribute-name restore --values-to-add\n   \u003Caccount-id>` and the KMS key policy grants `kms:Decrypt`.\n\n**For restore-pitr (`restore-db-instance-to-point-in-time`):**\n4. `BackupRetentionPeriod >= 1` (automated backups enabled).\n5. `LatestRestorableTime` is not null.\n6. Target restore time is within `[EarliestRestorableTime,\n   LatestRestorableTime]`.\n7. Option group specified (review needed if source uses custom options).\n8. Security groups specified (review needed if VPC topology changed).\n9. Verdict is REVIEW_REQUIRED (creates a new instance with a new endpoint).\n\n**For clone-from-snapshot (Aurora only):**\n4. Source snapshot is a cluster snapshot (`DBClusterSnapshot`), not an\n   instance snapshot.\n5. Engine is `aurora-mysql` or `aurora-postgresql`.\n6. Clone is near-instant (copy-on-write); size is not a time factor.\n\n**For share-snapshot (`modify-db-snapshot-attribute`):**\n4. Snapshot is `available`.\n5. For encrypted snapshots: KMS key policy grants target account\n   `kms:CreateGrant` and `kms:Decrypt`.\n6. Target account ID is valid (12 digits).\n\n**For export-snapshot (`start-export-task`):**\n4. Snapshot is `available`.\n5. S3 bucket exists and the IAM role has `s3:PutObject` on the bucket ARN.\n6. IAM role trust policy allows `export.rds.amazonaws.com`.\n7. KMS key for export (if specified) is `Enabled`.\n\n**For delete-snapshot (`delete-db-snapshot`):**\n4. Snapshot is `available` (cannot delete while `creating` or `copying`).\n5. Snapshot is NOT tagged `DoNotDelete: true` (compliance hold).\n6. For automated lifecycle: confirm the snapshot is beyond the retention\n   window.\n7. Verdict is REVIEW_REQUIRED for compliance-hold or audit-sensitive\n   snapshots.\n\n**For update-retention (`modify-db-instance --backup-retention-period`):**\n4. New retention is in [1, 35].\n5. If decreasing retention: confirm no compliance requirement for the\n   longer window.\n6. If increasing retention: note that RDS does NOT backfill logs for the\n   new period.\n\n### Step 2: OPERATION_COMPLETED or REVIEW_REQUIRED — emit operation plan\n\nIf all pre-checks pass and the operation is straightforward (create,\ncopy, clone, export, share), emit `VERDICT: OPERATION_COMPLETED` (for\nalready-executed verification scenarios) or the plan leading to\ncompletion. For operations requiring human review (restore-pitr,\ndelete-snapshot with compliance concerns, Blue\u002FGreen pre-flight), emit\n`VERDICT: REVIEW_REQUIRED` with the specific items to review.\n\nThe plan includes:\n- The exact AWS CLI command with all flags populated from the instance\n  configuration.\n- The expected duration (snapshot: 2-30 minutes depending on size; Aurora\n  clone: seconds; PITR restore: 20-45 minutes; export: 30-60 minutes).\n- The expected side-effects (new snapshot in `available`, new instance in\n  `available`, S3 objects in Parquet format).\n- The CONFIRM gate prompt.\n- The monitoring step (describe-db-snapshots to watch status transition).\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-db-snapshot`, `copy-db-snapshot`, `delete-db-snapshot`,\n  `restore-db-instance-to-point-in-time`,\n  `restore-db-cluster-to-point-in-time`,\n  `create-db-cluster-from-snapshot`, `start-export-task`,\n  `modify-db-snapshot-attribute`, `modify-db-instance\n  --backup-retention-period`), emit:\n  `CONFIRM: About to \u003Coperation> on \u003Cinstance\u002Fcluster\u002Fsnapshot> in\n  account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed?\n  (yes\u002Fno)`. Do NOT execute until the operator confirms.\n- Capture pre-state: `aws rds describe-db-instances --db-instance-\n  identifier \u003Cid> --output json > \u002Ftmp\u002F\u003Cid>-pre-$(date +%s).json`.\n- Execute the CLI. For snapshot creation, the API returns immediately;\n  the snapshot transitions `creating` -> `available`.\n- Monitor: `aws rds describe-db-snapshots --db-snapshot-identifier \u003Csnap>\n  --query 'DBSnapshots[0].Status'`.\n\n### Step 4: Post-verification — OPERATION_COMPLETED\n\nAfter the operation finishes, run post-verification. ALL checks must pass\nfor `OPERATION_COMPLETED`.\n\n1. `describe-db-snapshots --db-snapshot-identifier \u003Csnap>` — confirm\n   `Status: available`.\n2. For restore: `describe-db-instances --db-instance-identifier \u003Cnew-id>`\n   — confirm `DBInstanceStatus: available`.\n3. For copy: confirm the snapshot appears in the target region\n   (`describe-db-snapshots --region \u003Ctarget-region>`).\n4. For export: `describe-export-tasks --export-task-identifier \u003Ctask>` —\n   confirm `Status: COMPLETE` and S3 objects exist.\n5. For share: target account confirms visibility via\n   `describe-db-snapshots --include-shared --snapshot-type shared`.\n6. For clone (Aurora): `describe-db-clusters --db-cluster-identifier\n  \u003Cnew-cluster>` — confirm `Status: available`.\n\nIf ANY verification fails, emit `VERDICT: ERROR` with the failure details\n— do not claim OPERATION_COMPLETED.\n\n## Output format (per operation)\n\n```text\nOPERATION: \u003Ccreate-snapshot | copy-snapshot | restore-pitr | share-snapshot | clone-from-snapshot | export-snapshot | delete-snapshot | update-retention>\nVERDICT: OPERATION_COMPLETED | REVIEW_REQUIRED\nTARGET: \u003Cinstance-or-cluster-id> (snapshot: \u003Csnap-id-or-\"none\">)\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [REVIEW] \u003Ccheck description> — \u003Citem requiring human attention>\nSTEPS:\n  1. \u003CCLI command with flags populated>\n  2. \u003Cwait \u002F monitoring command>\n  3. \u003Cnext step>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nNOTES: \u003Cschedule, monitoring, caveats>\n```\n\n### Worked example — create-snapshot (pre-upgrade)\n\n```text\nOPERATION: create-snapshot\nVERDICT: OPERATION_COMPLETED\nTARGET: prod-orders-db (snapshot: prod-orders-db-pre-upgrade-20260805)\nPRE_CHECKS:\n  - [PASS] Instance prod-orders-db exists, Status: available\n  - [PASS] No existing snapshot with identifier\n    prod-orders-db-pre-upgrade-20260805\n  - [PASS] AllocatedStorage: 500 GB (estimated snapshot time: 10-20 min)\n  - [PASS] Encrypted: true, KMS key\n    arn:aws:kms:us-east-1:111111111111:key\u002Forders-cmk Enabled\nSTEPS:\n  1. CONFIRM: About to create manual snapshot\n     prod-orders-db-pre-upgrade-20260805 on instance prod-orders-db in\n     account 111111111111 region us-east-1. This will take ~10-20 minutes.\n     Proceed? (yes\u002Fno)\n  2. aws rds create-db-snapshot \\\n       --db-instance-identifier prod-orders-db \\\n       --db-snapshot-identifier prod-orders-db-pre-upgrade-20260805\n  3. aws rds describe-db-snapshots \\\n       --db-snapshot-identifier prod-orders-db-pre-upgrade-20260805 \\\n       --query 'DBSnapshots[0].Status'\nPOST_VERIFY:\n  - [PASS] Snapshot Status: available\n  - [PASS] Snapshot Encrypted: true (KMS key matches source)\n  - [PASS] AllocatedStorage: 500 GB (matches source)\nNOTES:\n  - This snapshot is the pre-upgrade recovery point. If the upgrade\n    fails, restore from this snapshot:\n    aws rds restore-db-instance-from-db-snapshot \\\n      --db-instance-identifier prod-orders-db-restored \\\n      --db-snapshot-identifier prod-orders-db-pre-upgrade-20260805 \\\n      --db-instance-class db.r6g.xlarge \\\n      --option-group-name prod-orders-options \\\n      --vpc-security-group-ids sg-prod-rds\n  - Manual snapshots persist beyond instance deletion. Tag this\n    snapshot: aws rds add-tags-to-resource \\\n      --resource-name arn:aws:rds:us-east-1:111111111111:snapshot:prod-orders-db-pre-upgrade-20260805 \\\n      --tags Key=DoNotDelete,Value=true Key=Purpose,Value=pre-upgrade\n```\n\n### Worked example — Aurora clone from snapshot\n\nFull worked example (Aurora clone: cluster restore plus instance creation, copy-on-write notes): moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nApply the Output format template above to reproduce it.\n\n### Worked example — PITR restore (REVIEW_REQUIRED)\n\nFull worked example (PITR restore with REVIEW_REQUIRED items and cutover notes): moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nApply the Output format template above to reproduce it.\n\n### Worked example — cross-region copy (DR)\n\nFull worked example (encrypted cross-region copy with DR KMS re-encryption): moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nApply the Output format template above to reproduce it.\n\n### Worked example — snapshot lifecycle cleanup\n\nFull worked example (lifecycle cleanup skipping compliance-hold snapshots): moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nApply the Output format template above to reproduce it.\n\n## Anti-Patterns — NEVER\n\n- NEVER delete an RDS instance without a final snapshot\n  (`--skip-final-snapshot`) in production environments. Manual snapshots\n  persist beyond deletion; automated backups do not. The final snapshot\n  is the last-chance recovery point.\n\n- NEVER assume automated backups replace manual snapshots for DR. Setting\n  `BackupRetentionPeriod: 35` gives you a 35-day PITR window, but deleting\n  the instance destroys ALL automated backups. Manual snapshots are the\n  only snapshot type that survives instance deletion.\n\n- NEVER restore a PITR or snapshot without specifying the option group.\n  The DEFAULT option group does not include TDE, SSL, OEM, or other\n  custom options. The restored data may be unreadable (TDE) or\n  inaccessible (SSL) without the correct option group.\n\n- NEVER assume PITR granularity is better than 5 minutes for RDS\n  (non-Aurora). RDS transaction logs are 5-minute snapshots. Aurora\n  supports second-level granularity. If the recovery objective requires\n  sub-5-minute precision, the engine must be Aurora.\n\n- NEVER confuse Aurora backtrack with snapshot restore. Backtrack rewinds\n  the cluster in-place within the backtrack window (up to 72 hours).\n  Snapshot restore creates a NEW cluster. Use backtrack for rapid logical\n  rollback; use snapshot restore for DR and cross-region recovery.\n\n- NEVER copy an encrypted snapshot cross-region without specifying a\n  target-region KMS key. KMS keys are region-scoped; the copy fails\n  without a target key. The source key cannot be referenced from another\n  region.\n\n- NEVER assume `DeletionProtection: true` protects snapshots. It protects\n  the INSTANCE from deletion (and thus preserves automated backups).\n  Manual snapshots can still be deleted with `delete-db-snapshot` even\n  if the source instance has DeletionProtection.\n\n- NEVER share an encrypted snapshot cross-account without also sharing the\n  KMS key. The target account cannot decrypt the snapshot without\n  `kms:Decrypt` on the source key. Use a key policy grant or KMS grants.\n\n- NEVER set `BackupRetentionPeriod: 0` on a production instance. This\n  disables ALL automated backups and immediately deletes existing\n  transaction logs. PITR is permanently lost. There is no confirmation\n  prompt — the setting takes effect immediately.\n\n- NEVER assume a snapshot is small because the database is small. RDS\n  snapshot billing is based on ALLOCATED storage, not used storage. A\n  1 TB EBS volume with 10 GB of data costs the same to snapshot as a\n  full 1 TB.\n\n- NEVER skip the CONFIRM gate for `delete-db-snapshot`. Snapshot deletion\n  is irreversible. There is no recycle bin or version history. Verify the\n  snapshot is not compliance-hold or part of a DR plan before confirming.\n\n- NEVER assume increasing `BackupRetentionPeriod` backfills historical\n  logs. Changing from 7 to 35 days starts retaining 35 days FROM THE\n  CHANGE TIME FORWARD. The previous 7-day window is not extended\n  retroactively.\n\n- NEVER use instance-level APIs for Aurora clusters. Aurora uses cluster-\n  level APIs (`create-db-cluster-snapshot`, `restore-db-cluster-to-point-\n  in-time`, `restore-db-cluster-from-snapshot`). Instance-level APIs\n  fail or create inconsistent state.\n\n- NEVER export a snapshot to S3 without verifying the IAM role trust\n  policy. The export service (`export.rds.amazonaws.com`) must be in the\n  trust policy, or the export task fails immediately with\n  `AccessDeniedException`.\n\n- NEVER assume Aurora clone takes the same time as RDS restore. Aurora\n  clones are instant (copy-on-write at the storage layer). RDS restores\n  are proportional to allocated storage. Knowing the engine determines\n  whether a maintenance window is needed.\n\n- NEVER run a Blue\u002FGreen deploy without a pre-deploy manual snapshot.\n  The snapshot is the rollback path if the green environment has issues\n  post-switch. Without it, rollback requires PITR (5-minute granularity\n  for RDS, with potential data loss).\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nSix pre-flight safety checks (CONFIRM gate, pre-state capture, KMS verification, option group on restore, network topology, additive-over-destructive): moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nDefense-in-depth before any remediation CLI.\n\n## Recent AWS features (2024-2026)\n\nTen recent AWS features 2024-2026 (cross-account clones, Blue\u002FGreen GA, ExportOnly filtering, 35-day retention, 72-hour backtrack, AWS Backup integration, Parquet compression, storage auto-scaling, DLM KMS re-encryption, CloudWatch RUM): moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nConsult before citing feature limits or recency.\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — Secondary worked examples (Aurora clone, PITR restore, cross-region DR copy, lifecycle cleanup).\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 non-obvious snapshot behaviors, recent AWS features (2024-2026).\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Live-account pre-flight commands, pre-flight safety checks.\n- [references\u002Fsnapshot-restore-procedures.md](references\u002Fsnapshot-restore-procedures.md) — Per-operation CLI procedures (create, copy, restore, clone, share, export, delete, retention).\n- [references\u002Fsnapshot-lifecycle-automation.md](references\u002Fsnapshot-lifecycle-automation.md) — Lambda\u002FEventBridge cleanup, DLM and AWS Backup DR pipelines.\n\n## Domain\n\nAWS CloudOps \u002F RDS & Aurora Snapshot Management, Backup Retention, DR &\nCompliance.\n\n## AWS documentation\n\n- **Amazon RDS User Guide — Backing up and restoring** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FCHAP_CommonTasks.BackupRestore.html\n- **Creating a DB snapshot** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_CreateSnapshot.html\n- **Restoring from a DB snapshot** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_RestoreFromSnapshot.html\n- **Point-in-time recovery** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_PIT.html\n- **Copying a snapshot** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_CopySnapshot.html\n- **Sharing a snapshot** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_ShareSnapshot.html\n- **Exporting snapshot data to Amazon S3** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUSER_ExportSnapshot.html\n- **Amazon Aurora cloning** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAuroraUserGuide\u002FAurora.Managing.Clone.html\n- **Amazon Aurora backtrack** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAuroraUserGuide\u002FAuroraMySQL.Managing.Backtrack.html\n- **RDS Blue\u002FGreen Deployments** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002Fblue-green-deployments.html\n- **RDS API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAPIReference\u002F\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, rds, aurora, database, snapshot, backup, recovery, dr, compliance, operate","4","Jacky Chan — AWS Community Builder","aws-cloudops","Databases","0.1.0","RDS snapshot, manual snapshot, automated backup, backup retention, PITR, point-in-time recovery, snapshot copy, cross-region snapshot, DR snapshot, snapshot sharing, cross-account snapshot, snapshot restore, Aurora clone, Aurora backtrack, Blue\u002FGreen deploy, snapshot export, S3 export Parquet, snapshot lifecycle, EventBridge snapshot, KMS re-encryption, DBSnapshotAttribute","operate","high","false","capability","Creating a manual snapshot before an upgrade or maintenance window, changing automated backup retention (1-35 days), copying snapshots to a DR region, restoring to a point in time (5-minute granularity), sharing a snapshot cross-account, cloning an Aurora cluster from a snapshot, exporting snapshot data to S3 in Parquet format, automating snapshot lifecycle cleanup, or running a Blue\u002FGreen deploy with a snapshot pre-flight.","true","OPERATION_COMPLETED | REVIEW_REQUIRED","active","Input: either (a) an RDS instance\u002Fcluster configuration (describe-db- instance output) plus the intended operation (create-snapshot, copy-snapshot, restore-pitr, share-snapshot, clone-from-snapshot, export-snapshot, delete-snapshot, update-retention), OR (b) an instance\u002Fcluster identifier + operation for live-account execution. Output: deterministic OPERATION \u002F VERDICT \u002F PRE_CHECKS \u002F STEPS \u002F POST_VERIFY \u002F NOTES block per snapshot operation, where VERDICT is OPERATION_COMPLETED or REVIEW_REQUIRED.","create RDS snapshot, manual snapshot before upgrade, change backup retention, PITR restore, point-in-time recovery, copy snapshot to DR region, cross-region snapshot copy, share snapshot cross-account, restore from snapshot, Aurora clone from snapshot, Aurora backtrack, export snapshot to S3, snapshot lifecycle cleanup, delete old snapshots, Blue\u002FGreen deploy snapshot, snapshot size monitoring","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws rds create-db-snapshot, copy-db-snapshot, delete-db-snapshot, describe-db-snapshots, modify-db-instance --backup-retention-period, restore-db-instance-to-point-in-time, restore-db-cluster-to-point-in-time, create-db-cluster-from-snapshot, share-db-snapshot, start-export-task, aws lambda, aws events (AWS CLI v2, SSO or key-based...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Frds-snapshot-operator",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 rds-snapshot-operator",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill rds-snapshot-operator",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill rds-snapshot-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",8298,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Faurora-clone-from-snapshot-completed.md",546,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fbaselines\u002Faurora-clone-from-snapshot-completed.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fcopy-snapshot-cross-region-dr-completed.md",609,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fbaselines\u002Fcopy-snapshot-cross-region-dr-completed.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fcreate-manual-snapshot-pre-upgrade-completed.md",535,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fbaselines\u002Fcreate-manual-snapshot-pre-upgrade-completed.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fdelete-old-snapshots-lifecycle-review.md",666,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fbaselines\u002Fdelete-old-snapshots-lifecycle-review.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fpitr-restore-to-point-in-time-review.md",541,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fbaselines\u002Fpitr-restore-to-point-in-time-review.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1994,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4573,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Faurora-clone-from-snapshot-completed.md",855,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fprompts\u002Faurora-clone-from-snapshot-completed.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fcopy-snapshot-cross-region-dr-completed.md",798,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fprompts\u002Fcopy-snapshot-cross-region-dr-completed.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fcreate-manual-snapshot-pre-upgrade-completed.md",1014,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fprompts\u002Fcreate-manual-snapshot-pre-upgrade-completed.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fdelete-old-snapshots-lifecycle-review.md",1235,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fprompts\u002Fdelete-old-snapshots-lifecycle-review.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fpitr-restore-to-point-in-time-review.md",946,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fevals\u002Fprompts\u002Fpitr-restore-to-point-in-time-review.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002FREADME.md",7417,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fexamples\u002FREADME.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",8697,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fdiagnostic-commands.md",3271,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Freferences\u002Fdiagnostic-commands.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fsnapshot-lifecycle-automation.md",6961,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Freferences\u002Fsnapshot-lifecycle-automation.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Fsnapshot-restore-procedures.md",9103,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Freferences\u002Fsnapshot-restore-procedures.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fworked-examples.md",7669,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Freferences\u002Fworked-examples.md",{"path":144,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":145,"sourceHtmlUrl":146},"skill.usf.yaml",4668,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-snapshot-operator\u002Fskill.usf.yaml",[148,155,162,169,176,183],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"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":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"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":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"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":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"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":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"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":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"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",[],[]]