[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AB0R61SD161SMT0WBB8FJN":3,"skill-same:01M7AB0R61SD161SMT0WBB8FJN":146},{"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":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7AB0R61SD161SMT0WBB8FJN","rds-instance-auditor",null,"Audits AWS RDS DB instances for the seven high-impact configuration risks that drive data-loss and outage incidents — public accessibility (internet-exposed database), encryption-at-rest (immutable post-creation), deletion protection, Multi-AZ availability, automated-backup \u002F PITR retention, auto minor-version upgrade, and Enhanced Monitoring. Emits a deterministic verdict (PUBLIC | UNENCRYPTED | NO_DELETION_PROTECTION | SINGLE_AZ | CONFIG_GAP | OK) per instance with enumerated findings and specific remediation CLI. Use when reviewing RDS posture, checking for internet-reachable databases, validating encryption enablement, auditing deletion-protection \u002F backup coverage before production deployment, or hardening database instance configuration.","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-instance-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rds-instance-auditor\ndescription: Audits AWS RDS DB instances for the seven high-impact configuration risks that drive data-loss and outage incidents — public accessibility (internet-exposed database), encryption-at-rest (immutable post-creation), deletion protection, Multi-AZ availability, automated-backup \u002F PITR retention, auto minor-version upgrade, and Enhanced Monitoring. Emits a deterministic verdict (PUBLIC | UNENCRYPTED | NO_DELETION_PROTECTION | SINGLE_AZ | CONFIG_GAP | OK) per instance with enumerated findings and specific remediation CLI. Use when reviewing RDS posture, checking for internet-reachable databases, validating encryption enablement, auditing deletion-protection \u002F backup coverage before production deployment, or hardening database instance configuration.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline metadata classification. Live-account audits use aws rds describe-db-instances and aws rds describe-db-clusters (AWS CLI v2, SSO or key-based credentials).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Databases\n  verdict_shape: PUBLIC | UNENCRYPTED | NO_DELETION_PROTECTION | SINGLE_AZ | CONFIG_GAP | OK\n  when_to_use: Reviewing an RDS DB instance configuration before production deployment, checking whether a database is internet-reachable, validating encryption-at-rest, auditing deletion-protection or backup coverage, verifying Multi-AZ posture, or hardening database instance configuration across an account.\n  when_not_to_use: Aurora cluster-level posture audits (use the DBCluster block directly), performance-tuning or query optimization, IAM\u002Fauth analysis (password policies, IAM database authentication), certificate\u002FTLS expiry checks (acm-certificate-expiry-auditor), KMS key-policy or rotation audits (kms-key-policy-auditor), or subnet\u002Froute-table reachability analysis. This skill classifies configuration posture from instance metadata — it does not perform live connectivity or penetration testing.\n  activation_triggers: audit this RDS instance, is my database public, check RDS encryption, is deletion protection enabled, are automated backups on, Multi-AZ check, minor version upgrade, Enhanced Monitoring off, harden RDS instance, PubliclyAccessible true, BackupRetentionPeriod zero\n  invocation_schema: 'Input: either (a) an RDS DB instance configuration (describe-db-instances metadata), optionally paired with the DBCluster block for Aurora engines, OR (b) a db-instance-identifier for live-account audit. Output: deterministic INSTANCE\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per instance, where VERDICT ∈ {PUBLIC, UNENCRYPTED, NO_DELETION_PROTECTION, SINGLE_AZ, CONFIG_GAP, OK, ERROR}.'\n  invocation_example: '# Minimal valid input (offline metadata classification):\n\n    DBInstanceIdentifier: db-prod-mysql-01\n\n    Engine: mysql\n\n    DBInstanceStatus: available\n\n    PubliclyAccessible: false\n\n    StorageEncrypted: true\n\n    KmsKeyId: arn:aws:kms:us-east-1:111111111111:key\u002Fabc\n\n    MultiAZ: true\n\n    DeletionProtection: false\n\n    BackupRetentionPeriod: 7\n\n    AutoMinorVersionUpgrade: true\n\n    MonitoringInterval: 60\n\n    # For Aurora, also supply the DBCluster block:\n\n    # DBClusterIdentifier, StorageEncrypted, DeletionProtection,\n\n    # BackupRetentionPeriod (cluster is authoritative for these).'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: RDS, DB instance, public accessibility, encryption-at-rest, StorageEncrypted, Multi-AZ, deletion protection, automated backups, BackupRetentionPeriod, minor version upgrade, Enhanced Monitoring, PITR, Aurora cluster scope, database audit, data loss prevention, PubliclyAccessible, DB instance hardening\n  tags: rds, databases, security, availability, encryption, backups, multi-az, audit\n---\n\n# RDS Instance Auditor\n\n## Quick start\n\n- **Verdict order (first match wins):** PUBLIC → UNENCRYPTED → NO_DELETION_PROTECTION → SINGLE_AZ → CONFIG_GAP → OK. Emit all dimensions in FINDINGS regardless.\n- **Aurora is cluster-scoped:** for `aurora-*` engines, encryption\u002Fdeletion-protection\u002FMulti-AZ\u002Fretention live on the `DBCluster`; defer to `describe-db-clusters`.\n- **Encryption is immutable:** `StorageEncrypted` cannot be toggled in place — remediation is snapshot → encrypted-copy → restore-new → cutover.\n\n## Mindset\n\nAudit RDS configuration metadata against seven high-impact dimensions and\nemit the worst finding as the verdict, with every dimension enumerated\nregardless of the headline.\n\n## Philosophy\n\n> Moved verbatim to [`references\u002Fadvanced-patterns.md`](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n## Quick reference — severity thresholds\n\nThe verdict enum is ordered worst → least. The first matching dimension in the\nordered steps below is the verdict; remaining dimensions are still enumerated\nin the FINDINGS list.\n\n| Condition | Verdict | Step |\n|---|---|---|\n| `PubliclyAccessible: true` on a non-Aurora instance | **PUBLIC** | Step 1 |\n| `StorageEncrypted: false` (non-Aurora, or DBCluster for Aurora) | **UNENCRYPTED** | Step 2 |\n| `DeletionProtection: false` on the instance (or cluster, Aurora) | **NO_DELETION_PROTECTION** | Step 3 |\n| `MultiAZ: false` on a primary, non-Aurora, non-Read-Replica instance | **SINGLE_AZ** | Step 4 |\n| `BackupRetentionPeriod: 0` OR `AutoMinorVersionUpgrade: false` OR `MonitoringInterval: 0` | **CONFIG_GAP** | Step 5-7 |\n| All seven dimensions pass | **OK** | Step 8 |\n\nSee the ordered steps for Aurora\u002Freplica edge cases. Deep RDS-specific\nbehaviours (immutability, cluster scope, standby semantics, maintenance-window\ninteractions) are in the [Expert edge cases](#expert-edge-cases) section.\n\n## Pre-flight: instance metadata gate (run before classification)\n\nSeveral instance attributes **short-circuit** or **redirect** the audit.\nMisclassifying them produces false positives that erode trust.\n\n**Account-wide sweep (pagination):** `describe-db-instances` caps at 100\nrecords\u002Fpage. Drain the `Marker` to completion:\n> Moved verbatim to [`references\u002Fdiagnostic-commands.md`](references\u002Fdiagnostic-commands.md) — load on demand.\n\n\n| Attribute | Value | Effect on audit |\n|---|---|---|\n| `Engine` | `aurora-mysql`, `aurora-postgresql` | **Aurora instance.** Encryption, deletion protection, and Multi-AZ live on the DBCluster. Do NOT flag instance-level `StorageEncrypted`\u002F`DeletionProtection`\u002F`MultiAZ` — defer to cluster metadata (Steps 2-4 cluster branch). Backup retention is also cluster-level and `0` is rejected by the API. |\n| `DBInstanceStatus` | `deleting` | Instance is being torn down. Skip audit, emit `VERDICT: OK` with note \"instance is deleting — no remediation applicable.\" Do NOT propose modifications against a deleting instance. |\n| `DBInstanceStatus` | `failed`, `inaccessible`, `incompatible-*` | Instance is non-functional. Surface as an operational finding but still audit the seven dimensions on the stored configuration. |\n| `ReadReplicaSourceDBInstanceIdentifier` | present | **Read Replica.** Read-only by design. SINGLE_AZ on a replica is lower acuity (the primary's Multi-AZ is the availability gate for writes); downgrade SINGLE_AZ from a hard fail to a note unless the replica is itself a production read endpoint. |\n| `InstanceClass` | `db.serverless` | Aurora Serverless v1\u002Fv2 scaling is cluster-governed; MultiAZ semantics differ. Defer to cluster. |\n| `PendingModifiedValues` | any field populated | An in-flight modification is queued. Audit the CURRENT value (not the pending one); note the pending change in REMEDIATION so the operator knows whether the gap is already being addressed. |\n| `StorageEncrypted: true` + `KmsKeyId` absent | — | RDS uses the AWS-managed `aws\u002Frds` key. **It IS encrypted** — do NOT flag UNENCRYPTED. Key-policy \u002F rotation concerns are the kms-key-policy-auditor's scope, not this skill. |\n\n**If the instance metadata is malformed** (missing `DBInstanceIdentifier`,\nabsent `Engine`, or unparseable), output:\n\n```text\nINSTANCE: \u003Cidentifier or unknown>\nVERDICT: ERROR\nREASON: RDS instance metadata is missing required fields (DBInstanceIdentifier, Engine) — cannot classify.\nREMEDIATION: Re-fetch with `aws rds describe-db-instances --db-instance-identifier \u003Cid> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious RDS behaviours that change classification\n\n> Moved verbatim to [`references\u002Fadvanced-patterns.md`](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n### Step 1: Public accessibility (highest priority — internet exposure)\n\nIf `PubliclyAccessible: true` on the instance, the dimension verdict is\n**PUBLIC**. This is the worst verdict in the enum — an internet-reachable\ndatabase is the highest-impact RDS misconfiguration. The flag is evaluated\nfirst because exposure compounds every other finding: an unencrypted, no-backup\npublic database is a write-once ransomware target.\n\nFor Aurora instances, `PubliclyAccessible` is still instance-level (each\ninstance gets its own flag), so this step applies the same way.\n\nA `0.0.0.0\u002F0` security-group inbound rule is NOT required to produce PUBLIC —\nthe flag alone is sufficient. Note permissive SGs in REMEDIATION regardless.\n\n### Step 2: Encryption-at-rest (immutable — migration required)\n\nFor non-Aurora engines: if `StorageEncrypted: false`, the dimension verdict is\n**UNENCRYPTED**.\n\nFor Aurora engines: defer to the `DBCluster.StorageEncrypted` field. If the\ncluster block is not provided in the input, emit an AURORA_SCOPE note and do\nNOT classify this dimension from the instance-level echo — flag it as needing\ncluster metadata. If `DBCluster.StorageEncrypted: false`, the verdict is\nUNENCRYPTED at the cluster level. **Missing-cluster fallback:** when no\nDBCluster block is provided, append to FINDINGS:\n`[AURORA_SCOPE] Cluster metadata missing — run: aws rds describe-db-clusters --db-cluster-identifier \u003Ccluster-id> --output json. Cannot classify encryption\u002Fdeletion-protection\u002FMulti-AZ from instance echoes. Verdict reflects instance-level checks only (PubliclyAccessible).`\nThis prevents silent false-positives while giving the operator the exact CLI\nto fetch the missing data.\n\n`StorageEncrypted: true` with absent `KmsKeyId` is OK — RDS uses the\nAWS-managed `aws\u002Frds` key. Do NOT flag this as UNENCRYPTED.\n\n### Step 3: Deletion protection (accidental deletion guardrail)\n\nFor non-Aurora: if `DeletionProtection: false`, the dimension verdict is\n**NO_DELETION_PROTECTION**. With protection off, a single\n`delete-db-instance` call (with `--skip-final-snapshot`) destroys the instance\nand its data. The guardrail exists to force a deliberate disable step before\ndestructive actions.\n\nFor Aurora: defer to `DBCluster.DeletionProtection`. Instance-level deletion\nprotection is not the gate for Aurora — the cluster is the deletable unit.\n\n### Step 4: Multi-AZ (availability — AZ failure resilience)\n\nFor non-Aurora primary instances: if `MultiAZ: false`, the dimension verdict\nis **SINGLE_AZ**. With no standby, an AZ-level failure (power, network, host)\ncauses an outage until RDS provisions a replacement — typically minutes to\ntens of minutes. Multi-AZ provides a synchronous standby in a second AZ with\nautomatic failover (60-120 seconds of connection drop).\n\n**Downgrade cases (note in FINDINGS, do not drive the verdict):**\n- **Read Replica** (`ReadReplicaSourceDBInstanceIdentifier` present): the\n  replica is read-only; the primary's Multi-AZ is the write-availability gate.\n  Emit SINGLE_AZ as a note, not a hard finding, unless this replica is a\n  production read endpoint with strict read SLAs.\n- **Aurora instance**: Multi-AZ is a cluster-level property (replicas across\n  AZs). Defer to the cluster; do not flag instance-level `MultiAZ`.\n\n### Step 5: Automated backups (PITR coverage)\n\nIf `BackupRetentionPeriod: 0` on a non-Aurora instance, this is a CONFIG_GAP\ncontributor. `0` disables automated backups and point-in-time recovery\nentirely — there is no transaction-log archive and the only restore path is a\nmanual snapshot. The valid range is 0-35 days; AWS default is 7.\n\nFor Aurora: `BackupRetentionPeriod` is cluster-level and `0` is rejected by\nthe API (continuous backups, 1-35). A reported `0` on Aurora is stale or\ninvalid metadata — note it but do NOT flag CONFIG_GAP from this field.\n\n### Step 6: Auto minor-version upgrade (patching hygiene)\n\nIf `AutoMinorVersionUpgrade: false`, this is a CONFIG_GAP contributor. The\ninstance will not pick up minor-engine-version patches during the maintenance\nwindow — these include security fixes and stability improvements. Major\nversions are always opt-in and are out of scope for this flag.\n\n### Step 7: Enhanced Monitoring (OS-level observability)\n\nIf `MonitoringInterval: 0` (or absent), Enhanced Monitoring is OFF and this\nis a CONFIG_GAP contributor. Without it, only engine-level CloudWatch metrics\nexist — there is no OS-level signal for CPU steal, swap pressure, or file\nsystem fill, which are the precursors to most \"the database is slow but\nCloudWatch looks fine\" incidents.\n\n### Step 8: Aggregation — worst finding wins\n\nThe final verdict is the **worst** dimension verdict in this fixed order,\nwhere PUBLIC > UNENCRYPTED > NO_DELETION_PROTECTION > SINGLE_AZ > CONFIG_GAP >\nOK:\n\n```text\nverdict = first_match(\n  Step 1 PUBLIC,\n  Step 2 UNENCRYPTED,\n  Step 3 NO_DELETION_PROTECTION,\n  Step 4 SINGLE_AZ,\n  Step 5-7 CONFIG_GAP,\n  OK\n)\n```\n\nAll dimensions are still enumerated in the FINDINGS list regardless of the\nverdict, so the operator sees the full posture (a PUBLIC instance that is\nalso UNENCRYPTED shows both, with PUBLIC as the headline verdict).\n\n## Output format (per instance)\n\n```text\nINSTANCE: \u003Cdb-instance-identifier>\nVERDICT: PUBLIC | UNENCRYPTED | NO_DELETION_PROTECTION | SINGLE_AZ | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step number>\nFINDINGS:\n  - [PUBLIC] \u003Cfinding description (Step 1)>\n  - [UNENCRYPTED] \u003Cfinding description (Step 2)>\n  - [OK] \u003Cdimension that passed>\n  - [PENDING] \u003Cfield> is queued to change to \u003Cvalue> at next window \u002F on --apply-immediately (audited on CURRENT value; do not double-remediate)\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\nCONFIRM: Before executing any state-changing CLI above, emit and await operator\napproval: \"CONFIRM: About to \u003Caction> on \u003Cid> in \u003Cregion>. Proceed? (yes\u002Fno)\"\n```\n\nThe `[PENDING]` line is emitted ONLY when `PendingModifiedValues` contains a\nqueued change to one of the seven audited fields. It is informational — the\nverdict and FINDINGS reflect the CURRENT value. Skip the `[PENDING]` line when\nno fields are pending.\n\n### Concrete error-handling example — malformed metadata\n\n> Moved verbatim to [`references\u002Ferror-handling.md`](references\u002Ferror-handling.md) — load on demand.\n\n\n### Worked example — public and unencrypted dev instance\n\n```text\nINSTANCE: db-public-and-unencrypted\nVERDICT: PUBLIC\nREASON: PubliclyAccessible is true on a non-Aurora instance — the database\nhas a public IP and is internet-reachable subject to VPC routing (Step 1).\nStorageEncrypted is also false, compounding exposure (Step 2).\nFINDINGS:\n  - [PUBLIC] PubliclyAccessible: true — internet-exposed database (Step 1)\n  - [UNENCRYPTED] StorageEncrypted: false — data at rest is plaintext;\n    remediation is a snapshot migration, not a toggle (Step 2)\n  - [NO_DELETION_PROTECTION] DeletionProtection: false (Step 3)\n  - [OK] MultiAZ: true, BackupRetentionPeriod: 7, AutoMinorVersionUpgrade: true,\n    MonitoringInterval: 60\nREMEDIATION:\n  1. PUBLIC — Remove the public IP immediately:\n     aws rds modify-db-instance --db-instance-identifier db-public-and-unencrypted\n       --publicly-accessible false --apply-immediately --profile \u003Cp>\n  2. UNENCRYPTED — Plan the encryption migration (cannot be done in place):\n     aws rds create-db-snapshot --db-instance-identifier db-public-and-unencrypted\n       --db-snapshot-identifier pre-encrypt-$(date +%s) --profile \u003Cp>\n     aws rds copy-db-snapshot --source-db-snapshot-identifier pre-encrypt-...\n       --target-db-snapshot-identifier encrypted-copy --kms-key-id \u003Ckms-id> --profile \u003Cp>\n     aws rds restore-db-instance-from-db-snapshot --db-instance-identifier\n       db-public-and-unencrypted-enc --db-snapshot-identifier encrypted-copy --profile \u003Cp>\n     Then promote and cut over the endpoint.\n  3. NO_DELETION_PROTECTION — Enable after confirming no in-flight deletion:\n     aws rds modify-db-instance --db-instance-identifier db-public-and-unencrypted\n       --deletion-protection --apply-immediately --profile \u003Cp>\nCONFIRM: Before executing any CLI above, emit and await:\n  \"CONFIRM: About to modify-db-instance on db-public-and-unencrypted in\n   us-east-1. This changes public accessibility and deletion-protection\n   (existing public-IP connections will drop). Proceed? (yes\u002Fno)\"\n  Do NOT run the CLI until the operator replies yes.\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER recommend enabling encryption on an existing unencrypted instance\n  with `modify-db-instance`. The `StorageEncrypted` flag is immutable after\n  creation; `modify-db-instance` will reject the change. The only path is\n  snapshot → encrypted copy → restore-new → cutover. Pretending otherwise\n  produces a remediation that fails at execution time.\n\n- NEVER flag `StorageEncrypted: true` with absent `KmsKeyId` as UNENCRYPTED.\n  RDS transparently uses the AWS-managed `aws\u002Frds` key in this case — the\n  data IS encrypted at rest. Key-policy and rotation concerns are out of\n  scope for this skill (route to kms-key-policy-auditor).\n\n- NEVER flag a Read Replica as a hard SINGLE_AZ finding without noting it is\n  a replica. Read Replicas are read-only scaling instances; their Multi-AZ\n  posture is materially less critical than the primary's. Over-flagging\n  produces alert fatigue and trains operators to ignore the verdict.\n\n- NEVER flag `MultiAZ: false`, `StorageEncrypted`, or `DeletionProtection` on\n  an Aurora instance from the instance-level fields alone. For Aurora these\n  are DBCluster properties and the instance echoes are not authoritative.\n  Doing so produces false positives on every Aurora audit.\n\n- NEVER flag `BackupRetentionPeriod: 0` on an Aurora instance. The API\n  rejects `0` for Aurora (continuous backups, retention 1-35 enforced\n  server-side at `modify-db-cluster` time); a reported `0` is stale cache,\n  malformed `describe` output, or a fabricated test payload — never a live\n  configuration. Operational impact of flagging it anyway: the operator opens\n  a phantom incident, drains engineering cycles chasing metadata the RDS\n  control plane will not even accept, and learns to dismiss other findings as\n  \"API noise,\" eroding the credibility of legitimate findings on the same\n  report.\n\n- NEVER treat `PubliclyAccessible: false` as the complete public-access\n  picture for defense-in-depth. A `0.0.0.0\u002F0` inbound security-group rule is\n  still a smell — the instance is one `modify-db-instance --publicly-accessible\n  true` away from internet exposure. Note permissive SGs in REMEDIATION\n  regardless of the verdict, but do NOT upgrade PUBLIC to a worse verdict\n  (there is none) and do NOT invent a new verdict.\n\n- NEVER downgrade `PubliclyAccessible: true` to a non-PUBLIC verdict because\n  the security group looks locked down. The public IP is published; a future\n  SG edit, ELB attachment, or VPC peering change exposes the database. The\n  flag itself is the verdict driver.\n\n- NEVER treat `DeletionProtection: true` as a security control. Any principal\n  with `rds:ModifyDBInstance` can disable it and delete. It is an\n  accidental-deletion guardrail for operators and pipelines, not a defence\n  against a determined attacker with database-admin rights.\n\n- NEVER treat `AutoMinorVersionUpgrade: true` as \"fully patched.\" It covers\n  minor versions only, runs only during the maintenance window, and is\n  blocked if a `PendingModifiedValues` modification is queued. Major-version\n  upgrades are always opt-in. `true` is necessary but not sufficient.\n\n- NEVER recommend `--apply-immediately` for every remediation. Use it for\n  PUBLIC (close the exposure now) and NO_DELETION_PROTECTION (cheap to apply).\n  Prefer the maintenance window for Multi-AZ enablement (causes brief I\u002FO\n  suspension), minor-version upgrades (engine restart), and Enhanced\n  Monitoring role wiring. Stacking `--apply-immediately` modifications on a\n  production instance can cause an unplanned multi-minute restart window.\n\n- NEVER audit only the first page of `describe-db-instances`. The API caps at\n  100 records per page. The long-tail instances (dev, test, forgotten\n  production) are disproportionately likely to be misconfigured. Always drain\n  the `Marker` to completion:\n  ```bash\n  # Paginate all instances\n  aws rds describe-db-instances --output json --query 'DBInstances[*].[DBInstanceIdentifier,Engine,PubliclyAccessible,StorageEncrypted,MultiAZ,DeletionProtection,BackupRetentionPeriod,AutoMinorVersionUpgrade,MonitoringInterval]' --starting-token \"\u003CMarker from prior call>\"\n  # Fetch Aurora cluster metadata separately\n  aws rds describe-db-clusters --output json --query 'DBClusters[*].[DBClusterIdentifier,Engine,StorageEncrypted,DeletionProtection,BackupRetentionPeriod]'\n  ```\n\n- NEVER modify an instance with `DBInstanceStatus: deleting`,\n  `incompatible-parameters`, or `incompatible-restore`. The API rejects\n  modifications and the operator may be mid-recovery. Surface the status and\n  abort remediation.\n\n- NEVER assume a cross-region Read Replica is encrypted because the source is\n  encrypted. Cross-region replicas require a separate KMS CMK in the\n  destination region; if the replica was created with a misconfigured or\n  deleted key, its `StorageEncrypted` may read `true` while the key is\n  unusable. When auditing a cross-region replica, verify `KmsKeyId` resolves\n  to an active key in the replica's region, not just that the boolean is set.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing RDS operation\n  (`modify-db-instance`, `delete-db-instance`, `create-db-snapshot`), the\n  auditor MUST emit:\n  `CONFIRM: About to \u003Caction> on \u003Cdb-instance-identifier> in \u003Cregion>. This\n  affects \u003Cconsequence>. Proceed? (yes\u002Fno)`\n  Do NOT execute the CLI until the operator confirms. This gate prevents\n  automated pipelines from silently modifying production databases.\n- **Snapshot before destructive modifications.** Before Multi-AZ enablement,\n  encryption migration, or major remediation, capture a snapshot:\n  `aws rds create-db-snapshot --db-instance-identifier \u003Cid>\n  --db-snapshot-identifier pre-remediation-$(date +%s) --profile \u003Cp>`.\n  Encryption migration in particular is irreversible without a snapshot of\n  the original.\n- **Verify the instance is `available` before modifying.**\n  `aws rds describe-db-instances --db-instance-identifier \u003Cid>` — confirm\n  `DBInstanceStatus` is `available`. Modifying a `modifying`, `backing-up`,\n  or `creating` instance fails or queues behind existing work.\n- **Encryption migration is a cutover, not a patch.** The restore-new\n  instance has a new endpoint. Plan DNS\u002Fendpoint cutover, application\n  connection-string updates, and a rollback path (keep the original\n  unencrypted instance until cutover is verified). Never delete the original\n  until the encrypted replacement is confirmed serving traffic.\n- **Multi-AZ enablement causes a brief I\u002FO suspension.** Synchronous standby\n  creation suspends I\u002FO for a few minutes during standby provisioning. Schedule\n  outside peak write windows. The instance stays available but latency spikes.\n- **`--apply-immediately` vs maintenance window.** For PUBLIC and\n  NO_DELETION_PROTECTION findings, `--apply-immediately` is appropriate\n  (security\u002Faccidental-loss prevention). For SINGLE_AZ enablement and CONFIG_GAP\n  dimensions, ALWAYS omit `--apply-immediately` — Multi-AZ standby provisioning\n  causes an I\u002FO suspension of 1-3 minutes that will interrupt live writes. Queue\n  to the next maintenance window explicitly. Stacking `--apply-immediately` on\n  multiple dimensions at once compounds the disruption.\n- **Confirm the caller has `rds:ModifyDBInstance`.** Many read-only auditor\n  roles cannot modify. Surface this before the operator approves a change\n  that will fail with `AccessDenied`.\n- **Bulk-operation safety limit (enforced by the skill).** Remediation across\n  an account sweep MUST follow this exact algorithm:\n  1. Sort flagged instances verdict-first (PUBLIC before UNENCRYPTED, etc.).\n  2. Slice into batches of **at most 5 instances**.\n  3. For each batch: emit the per-instance REMEDIATION block, then a single\n     `CONFIRM: About to modify \u003Cid1, id2, …, idN> in \u003Cregion>. Proceed? (yes\u002Fno)`.\n  4. After the operator confirms and the CLI runs, re-query with\n     `aws rds describe-db-instances --db-instance-identifier \u003Ceach modified id>`\n     and verify the intended state landed before emitting the NEXT batch.\n  5. Abort the sweep if any instance in a batch enters `modifying`, `failed`,\n     or `incompatible-*` state — do NOT proceed to the next batch.\n  The skill MUST NOT emit remediation CLI for more than 5 instances in a\n  single output block. Auto-applying across an entire account in one pass is\n  forbidden: a single systematic misclassification or IaC-drift mismatch\n  cascades into mass disruption, and batched execution contains the blast\n  radius of any one mistake.\n\n## Remediation guidance\n\n**Ordering principle:** remediate findings in severity order (PUBLIC first),\nand prefer additive\u002Fonline changes over migrations where possible. Encryption\nis the only dimension that requires a migration — every other dimension has a\n`modify-db-instance` path.\n\n### For PUBLIC — internet-exposed database (Step 1)\n\n1. Immediately remove the public IP:\n   `aws rds modify-db-instance --db-instance-identifier \u003Cid>\n   --publicly-accessible false --apply-immediately --profile \u003Cp>`.\n   Existing public-IP connections drop; private-IP connections are unaffected.\n2. Audit the security group: if any inbound rule is `0.0.0.0\u002F0` on the DB\n   port (3306\u002F5432\u002F1433\u002Fetc.), tighten to the application's CIDR or security\n   group reference.\n3. If public access is genuinely required (rare — use a bastion or SSM Session\n   Manager instead), require TLS at the engine level (parameter group:\n   `rds.force_ssl=1` for PostgreSQL, require_secure_transport for MySQL) and\n   restrict the SG to a known egress CIDR.\n\n### For UNENCRYPTED — plaintext data at rest (Step 2)\n\n1. Snapshot:\n   `aws rds create-db-snapshot --db-instance-identifier \u003Cid>\n   --db-snapshot-identifier pre-encrypt-$(date +%s) --profile \u003Cp>`.\n2. Copy with encryption:\n   `aws rds copy-db-snapshot --source-db-snapshot-identifier \u003Csnap>\n   --target-db-snapshot-identifier \u003Csnap>-enc --kms-key-id \u003Ckms-id> --profile \u003Cp>`.\n3. Restore new encrypted instance:\n   `aws rds restore-db-instance-from-db-snapshot --db-instance-identifier\n   \u003Cid>-enc --db-snapshot-identifier \u003Csnap>-enc --profile \u003Cp>`.\n4. Cutover: rename the old instance (`--new-db-instance-identifier \u003Cid>-old`)\n   and rename the encrypted instance to the original identifier so the\n   endpoint absorbs. Verify application connectivity, then delete the old\n   unencrypted instance after a confirmation window.\n5. Enable deletion protection on the new encrypted instance as the last step.\n\n### For NO_DELETION_PROTECTION — accidental deletion (Step 3)\n\n`aws rds modify-db-instance --db-instance-identifier \u003Cid>\n--deletion-protection --apply-immediately --profile \u003Cp>`.\nFor Aurora, apply at the cluster: `aws rds modify-db-cluster`.\n\n### For SINGLE_AZ — availability gap (Step 4)\n\n`aws rds modify-db-instance --db-instance-identifier \u003Cid> --multi-az\n--profile \u003Cp>` (omit `--apply-immediately` — let it run in the next window).\nBrief I\u002FO suspension occurs during standby provisioning. Note: the standby is\nnot read-capable; for read scaling, provision Read Replicas separately.\n\n### For CONFIG_GAP — backups \u002F patching \u002F monitoring (Steps 5-7)\n\n- **Backups disabled** (`BackupRetentionPeriod: 0`):\n  `aws rds modify-db-instance --db-instance-identifier \u003Cid>\n  --backup-retention-period 7 --profile \u003Cp>`. Setting > 0 enables PITR and\n  triggers the first automated backup.\n- **Minor-version upgrade off** (`AutoMinorVersionUpgrade: false`):\n  `aws rds modify-db-instance --db-instance-identifier \u003Cid>\n  --auto-minor-version-upgrade --profile \u003Cp>`. The upgrade runs in the next\n  maintenance window.\n- **Enhanced Monitoring off** (`MonitoringInterval: 0`): first create or\n  reuse the `AmazonRDSEnhancedMonitoringRole` IAM role, then:\n  `aws rds modify-db-instance --db-instance-identifier \u003Cid>\n  --monitoring-interval 60 --monitoring-role-arn \u003Crole-arn> --profile \u003Cp>`.\n\n### For OK\n\n1. No remediation required for the current posture.\n2. Recommend a defense-in-depth SG review (no `0.0.0.0\u002F0` inbound) and TLS\n   enforcement at the parameter-group level.\n3. For Aurora, verify the DBCluster posture independently (this skill audits\n   instance-level fields; cluster-level audit is a separate scope).\n\n## Reference — edge cases\n\n> Moved verbatim to [`references\u002Fadvanced-patterns.md`](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n## Recent AWS features (2024-2026)\n\n> Moved verbatim to [`references\u002Fadvanced-patterns.md`](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n## References (load on demand)\n\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — account-wide paginated describe-db-instances \u002F describe-db-clusters sweep.\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — malformed-metadata ERROR contract deep dive (missing fields, type mismatches).\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — philosophy, Step 0 expert RDS behaviours, edge-case catalog, recent AWS features.\n\n## Domain\n\nAWS CloudOps \u002F RDS Database Security, Availability & Operational Posture.\n\n## AWS documentation\n\n- **Amazon RDS User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FWelcome.html\n- **Security in Amazon RDS** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUsingWithRDS.html\n- **Amazon RDS API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI RDS reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Frds\u002F\n- **Blue\u002FGreen deployments** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002Fblue-green-deployments.html\n","# RDS Instance Auditor\n\n## Quick start\n\n- **Verdict order (first match wins):** PUBLIC → UNENCRYPTED → NO_DELETION_PROTECTION → SINGLE_AZ → CONFIG_GAP → OK. Emit all dimensions in FINDINGS regardless.\n- **Aurora is cluster-scoped:** for `aurora-*` engines, encryption\u002Fdeletion-protection\u002FMulti-AZ\u002Fretention live on the `DBCluster`; defer to `describe-db-clusters`.\n- **Encryption is immutable:** `StorageEncrypted` cannot be toggled in place — remediation is snapshot → encrypted-copy → restore-new → cutover.\n\n## Mindset\n\nAudit RDS configuration metadata against seven high-impact dimensions and\nemit the worst finding as the verdict, with every dimension enumerated\nregardless of the headline.\n\n## Philosophy\n\n> Moved verbatim to [`references\u002Fadvanced-patterns.md`](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n## Quick reference — severity thresholds\n\nThe verdict enum is ordered worst → least. The first matching dimension in the\nordered steps below is the verdict; remaining dimensions are still enumerated\nin the FINDINGS list.\n\n| Condition | Verdict | Step |\n|---|---|---|\n| `PubliclyAccessible: true` on a non-Aurora instance | **PUBLIC** | Step 1 |\n| `StorageEncrypted: false` (non-Aurora, or DBCluster for Aurora) | **UNENCRYPTED** | Step 2 |\n| `DeletionProtection: false` on the instance (or cluster, Aurora) | **NO_DELETION_PROTECTION** | Step 3 |\n| `MultiAZ: false` on a primary, non-Aurora, non-Read-Replica instance | **SINGLE_AZ** | Step 4 |\n| `BackupRetentionPeriod: 0` OR `AutoMinorVersionUpgrade: false` OR `MonitoringInterval: 0` | **CONFIG_GAP** | Step 5-7 |\n| All seven dimensions pass | **OK** | Step 8 |\n\nSee the ordered steps for Aurora\u002Freplica edge cases. Deep RDS-specific\nbehaviours (immutability, cluster scope, standby semantics, maintenance-window\ninteractions) are in the [Expert edge cases](#expert-edge-cases) section.\n\n## Pre-flight: instance metadata gate (run before classification)\n\nSeveral instance attributes **short-circuit** or **redirect** the audit.\nMisclassifying them produces false positives that erode trust.\n\n**Account-wide sweep (pagination):** `describe-db-instances` caps at 100\nrecords\u002Fpage. Drain the `Marker` to completion:\n> Moved verbatim to [`references\u002Fdiagnostic-commands.md`](references\u002Fdiagnostic-commands.md) — load on demand.\n\n\n| Attribute | Value | Effect on audit |\n|---|---|---|\n| `Engine` | `aurora-mysql`, `aurora-postgresql` | **Aurora instance.** Encryption, deletion protection, and Multi-AZ live on the DBCluster. Do NOT flag instance-level `StorageEncrypted`\u002F`DeletionProtection`\u002F`MultiAZ` — defer to cluster metadata (Steps 2-4 cluster branch). Backup retention is also cluster-level and `0` is rejected by the API. |\n| `DBInstanceStatus` | `deleting` | Instance is being torn down. Skip audit, emit `VERDICT: OK` with note \"instance is deleting — no remediation applicable.\" Do NOT propose modifications against a deleting instance. |\n| `DBInstanceStatus` | `failed`, `inaccessible`, `incompatible-*` | Instance is non-functional. Surface as an operational finding but still audit the seven dimensions on the stored configuration. |\n| `ReadReplicaSourceDBInstanceIdentifier` | present | **Read Replica.** Read-only by design. SINGLE_AZ on a replica is lower acuity (the primary's Multi-AZ is the availability gate for writes); downgrade SINGLE_AZ from a hard fail to a note unless the replica is itself a production read endpoint. |\n| `InstanceClass` | `db.serverless` | Aurora Serverless v1\u002Fv2 scaling is cluster-governed; MultiAZ semantics differ. Defer to cluster. |\n| `PendingModifiedValues` | any field populated | An in-flight modification is queued. Audit the CURRENT value (not the pending one); note the pending change in REMEDIATION so the operator knows whether the gap is already being addressed. |\n| `StorageEncrypted: true` + `KmsKeyId` absent | — | RDS uses the AWS-managed `aws\u002Frds` key. **It IS encrypted** — do NOT flag UNENCRYPTED. Key-policy \u002F rotation concerns are the kms-key-policy-auditor's scope, not this skill. |\n\n**If the instance metadata is malformed** (missing `DBInstanceIdentifier`,\nabsent `Engine`, or unparseable), output:\n\n```text\nINSTANCE: \u003Cidentifier or unknown>\nVERDICT: ERROR\nREASON: RDS instance metadata is missing required fields (DBInstanceIdentifier, Engine) — cannot classify.\nREMEDIATION: Re-fetch with `aws rds describe-db-instances --db-instance-identifier \u003Cid> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious RDS behaviours that change classification\n\n> Moved verbatim to [`references\u002Fadvanced-patterns.md`](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n### Step 1: Public accessibility (highest priority — internet exposure)\n\nIf `PubliclyAccessible: true` on the instance, the dimension verdict is\n**PUBLIC**. This is the worst verdict in the enum — an internet-reachable\ndatabase is the highest-impact RDS misconfiguration. The flag is evaluated\nfirst because exposure compounds every other finding: an unencrypted, no-backup\npublic database is a write-once ransomware target.\n\nFor Aurora instances, `PubliclyAccessible` is still instance-level (each\ninstance gets its own flag), so this step applies the same way.\n\nA `0.0.0.0\u002F0` security-group inbound rule is NOT required to produce PUBLIC —\nthe flag alone is sufficient. Note permissive SGs in REMEDIATION regardless.\n\n### Step 2: Encryption-at-rest (immutable — migration required)\n\nFor non-Aurora engines: if `StorageEncrypted: false`, the dimension verdict is\n**UNENCRYPTED**.\n\nFor Aurora engines: defer to the `DBCluster.StorageEncrypted` field. If the\ncluster block is not provided in the input, emit an AURORA_SCOPE note and do\nNOT classify this dimension from the instance-level echo — flag it as needing\ncluster metadata. If `DBCluster.StorageEncrypted: false`, the verdict is\nUNENCRYPTED at the cluster level. **Missing-cluster fallback:** when no\nDBCluster block is provided, append to FINDINGS:\n`[AURORA_SCOPE] Cluster metadata missing — run: aws rds describe-db-clusters --db-cluster-identifier \u003Ccluster-id> --output json. Cannot classify encryption\u002Fdeletion-protection\u002FMulti-AZ from instance echoes. Verdict reflects instance-level checks only (PubliclyAccessible).`\nThis prevents silent false-positives while giving the operator the exact CLI\nto fetch the missing data.\n\n`StorageEncrypted: true` with absent `KmsKeyId` is OK — RDS uses the\nAWS-managed `aws\u002Frds` key. Do NOT flag this as UNENCRYPTED.\n\n### Step 3: Deletion protection (accidental deletion guardrail)\n\nFor non-Aurora: if `DeletionProtection: false`, the dimension verdict is\n**NO_DELETION_PROTECTION**. With protection off, a single\n`delete-db-instance` call (with `--skip-final-snapshot`) destroys the instance\nand its data. The guardrail exists to force a deliberate disable step before\ndestructive actions.\n\nFor Aurora: defer to `DBCluster.DeletionProtection`. Instance-level deletion\nprotection is not the gate for Aurora — the cluster is the deletable unit.\n\n### Step 4: Multi-AZ (availability — AZ failure resilience)\n\nFor non-Aurora primary instances: if `MultiAZ: false`, the dimension verdict\nis **SINGLE_AZ**. With no standby, an AZ-level failure (power, network, host)\ncauses an outage until RDS provisions a replacement — typically minutes to\ntens of minutes. Multi-AZ provides a synchronous standby in a second AZ with\nautomatic failover (60-120 seconds of connection drop).\n\n**Downgrade cases (note in FINDINGS, do not drive the verdict):**\n- **Read Replica** (`ReadReplicaSourceDBInstanceIdentifier` present): the\n  replica is read-only; the primary's Multi-AZ is the write-availability gate.\n  Emit SINGLE_AZ as a note, not a hard finding, unless this replica is a\n  production read endpoint with strict read SLAs.\n- **Aurora instance**: Multi-AZ is a cluster-level property (replicas across\n  AZs). Defer to the cluster; do not flag instance-level `MultiAZ`.\n\n### Step 5: Automated backups (PITR coverage)\n\nIf `BackupRetentionPeriod: 0` on a non-Aurora instance, this is a CONFIG_GAP\ncontributor. `0` disables automated backups and point-in-time recovery\nentirely — there is no transaction-log archive and the only restore path is a\nmanual snapshot. The valid range is 0-35 days; AWS default is 7.\n\nFor Aurora: `BackupRetentionPeriod` is cluster-level and `0` is rejected by\nthe API (continuous backups, 1-35). A reported `0` on Aurora is stale or\ninvalid metadata — note it but do NOT flag CONFIG_GAP from this field.\n\n### Step 6: Auto minor-version upgrade (patching hygiene)\n\nIf `AutoMinorVersionUpgrade: false`, this is a CONFIG_GAP contributor. The\ninstance will not pick up minor-engine-version patches during the maintenance\nwindow — these include security fixes and stability improvements. Major\nversions are always opt-in and are out of scope for this flag.\n\n### Step 7: Enhanced Monitoring (OS-level observability)\n\nIf `MonitoringInterval: 0` (or absent), Enhanced Monitoring is OFF and this\nis a CONFIG_GAP contributor. Without it, only engine-level CloudWatch metrics\nexist — there is no OS-level signal for CPU steal, swap pressure, or file\nsystem fill, which are the precursors to most \"the database is slow but\nCloudWatch looks fine\" incidents.\n\n### Step 8: Aggregation — worst finding wins\n\nThe final verdict is the **worst** dimension verdict in this fixed order,\nwhere PUBLIC > UNENCRYPTED > NO_DELETION_PROTECTION > SINGLE_AZ > CONFIG_GAP >\nOK:\n\n```text\nverdict = first_match(\n  Step 1 PUBLIC,\n  Step 2 UNENCRYPTED,\n  Step 3 NO_DELETION_PROTECTION,\n  Step 4 SINGLE_AZ,\n  Step 5-7 CONFIG_GAP,\n  OK\n)\n```\n\nAll dimensions are still enumerated in the FINDINGS list regardless of the\nverdict, so the operator sees the full posture (a PUBLIC instance that is\nalso UNENCRYPTED shows both, with PUBLIC as the headline verdict).\n\n## Output format (per instance)\n\n```text\nINSTANCE: \u003Cdb-instance-identifier>\nVERDICT: PUBLIC | UNENCRYPTED | NO_DELETION_PROTECTION | SINGLE_AZ | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step number>\nFINDINGS:\n  - [PUBLIC] \u003Cfinding description (Step 1)>\n  - [UNENCRYPTED] \u003Cfinding description (Step 2)>\n  - [OK] \u003Cdimension that passed>\n  - [PENDING] \u003Cfield> is queued to change to \u003Cvalue> at next window \u002F on --apply-immediately (audited on CURRENT value; do not double-remediate)\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\nCONFIRM: Before executing any state-changing CLI above, emit and await operator\napproval: \"CONFIRM: About to \u003Caction> on \u003Cid> in \u003Cregion>. Proceed? (yes\u002Fno)\"\n```\n\nThe `[PENDING]` line is emitted ONLY when `PendingModifiedValues` contains a\nqueued change to one of the seven audited fields. It is informational — the\nverdict and FINDINGS reflect the CURRENT value. Skip the `[PENDING]` line when\nno fields are pending.\n\n### Concrete error-handling example — malformed metadata\n\n> Moved verbatim to [`references\u002Ferror-handling.md`](references\u002Ferror-handling.md) — load on demand.\n\n\n### Worked example — public and unencrypted dev instance\n\n```text\nINSTANCE: db-public-and-unencrypted\nVERDICT: PUBLIC\nREASON: PubliclyAccessible is true on a non-Aurora instance — the database\nhas a public IP and is internet-reachable subject to VPC routing (Step 1).\nStorageEncrypted is also false, compounding exposure (Step 2).\nFINDINGS:\n  - [PUBLIC] PubliclyAccessible: true — internet-exposed database (Step 1)\n  - [UNENCRYPTED] StorageEncrypted: false — data at rest is plaintext;\n    remediation is a snapshot migration, not a toggle (Step 2)\n  - [NO_DELETION_PROTECTION] DeletionProtection: false (Step 3)\n  - [OK] MultiAZ: true, BackupRetentionPeriod: 7, AutoMinorVersionUpgrade: true,\n    MonitoringInterval: 60\nREMEDIATION:\n  1. PUBLIC — Remove the public IP immediately:\n     aws rds modify-db-instance --db-instance-identifier db-public-and-unencrypted\n       --publicly-accessible false --apply-immediately --profile \u003Cp>\n  2. UNENCRYPTED — Plan the encryption migration (cannot be done in place):\n     aws rds create-db-snapshot --db-instance-identifier db-public-and-unencrypted\n       --db-snapshot-identifier pre-encrypt-$(date +%s) --profile \u003Cp>\n     aws rds copy-db-snapshot --source-db-snapshot-identifier pre-encrypt-...\n       --target-db-snapshot-identifier encrypted-copy --kms-key-id \u003Ckms-id> --profile \u003Cp>\n     aws rds restore-db-instance-from-db-snapshot --db-instance-identifier\n       db-public-and-unencrypted-enc --db-snapshot-identifier encrypted-copy --profile \u003Cp>\n     Then promote and cut over the endpoint.\n  3. NO_DELETION_PROTECTION — Enable after confirming no in-flight deletion:\n     aws rds modify-db-instance --db-instance-identifier db-public-and-unencrypted\n       --deletion-protection --apply-immediately --profile \u003Cp>\nCONFIRM: Before executing any CLI above, emit and await:\n  \"CONFIRM: About to modify-db-instance on db-public-and-unencrypted in\n   us-east-1. This changes public accessibility and deletion-protection\n   (existing public-IP connections will drop). Proceed? (yes\u002Fno)\"\n  Do NOT run the CLI until the operator replies yes.\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER recommend enabling encryption on an existing unencrypted instance\n  with `modify-db-instance`. The `StorageEncrypted` flag is immutable after\n  creation; `modify-db-instance` will reject the change. The only path is\n  snapshot → encrypted copy → restore-new → cutover. Pretending otherwise\n  produces a remediation that fails at execution time.\n\n- NEVER flag `StorageEncrypted: true` with absent `KmsKeyId` as UNENCRYPTED.\n  RDS transparently uses the AWS-managed `aws\u002Frds` key in this case — the\n  data IS encrypted at rest. Key-policy and rotation concerns are out of\n  scope for this skill (route to kms-key-policy-auditor).\n\n- NEVER flag a Read Replica as a hard SINGLE_AZ finding without noting it is\n  a replica. Read Replicas are read-only scaling instances; their Multi-AZ\n  posture is materially less critical than the primary's. Over-flagging\n  produces alert fatigue and trains operators to ignore the verdict.\n\n- NEVER flag `MultiAZ: false`, `StorageEncrypted`, or `DeletionProtection` on\n  an Aurora instance from the instance-level fields alone. For Aurora these\n  are DBCluster properties and the instance echoes are not authoritative.\n  Doing so produces false positives on every Aurora audit.\n\n- NEVER flag `BackupRetentionPeriod: 0` on an Aurora instance. The API\n  rejects `0` for Aurora (continuous backups, retention 1-35 enforced\n  server-side at `modify-db-cluster` time); a reported `0` is stale cache,\n  malformed `describe` output, or a fabricated test payload — never a live\n  configuration. Operational impact of flagging it anyway: the operator opens\n  a phantom incident, drains engineering cycles chasing metadata the RDS\n  control plane will not even accept, and learns to dismiss other findings as\n  \"API noise,\" eroding the credibility of legitimate findings on the same\n  report.\n\n- NEVER treat `PubliclyAccessible: false` as the complete public-access\n  picture for defense-in-depth. A `0.0.0.0\u002F0` inbound security-group rule is\n  still a smell — the instance is one `modify-db-instance --publicly-accessible\n  true` away from internet exposure. Note permissive SGs in REMEDIATION\n  regardless of the verdict, but do NOT upgrade PUBLIC to a worse verdict\n  (there is none) and do NOT invent a new verdict.\n\n- NEVER downgrade `PubliclyAccessible: true` to a non-PUBLIC verdict because\n  the security group looks locked down. The public IP is published; a future\n  SG edit, ELB attachment, or VPC peering change exposes the database. The\n  flag itself is the verdict driver.\n\n- NEVER treat `DeletionProtection: true` as a security control. Any principal\n  with `rds:ModifyDBInstance` can disable it and delete. It is an\n  accidental-deletion guardrail for operators and pipelines, not a defence\n  against a determined attacker with database-admin rights.\n\n- NEVER treat `AutoMinorVersionUpgrade: true` as \"fully patched.\" It covers\n  minor versions only, runs only during the maintenance window, and is\n  blocked if a `PendingModifiedValues` modification is queued. Major-version\n  upgrades are always opt-in. `true` is necessary but not sufficient.\n\n- NEVER recommend `--apply-immediately` for every remediation. Use it for\n  PUBLIC (close the exposure now) and NO_DELETION_PROTECTION (cheap to apply).\n  Prefer the maintenance window for Multi-AZ enablement (causes brief I\u002FO\n  suspension), minor-version upgrades (engine restart), and Enhanced\n  Monitoring role wiring. Stacking `--apply-immediately` modifications on a\n  production instance can cause an unplanned multi-minute restart window.\n\n- NEVER audit only the first page of `describe-db-instances`. The API caps at\n  100 records per page. The long-tail instances (dev, test, forgotten\n  production) are disproportionately likely to be misconfigured. Always drain\n  the `Marker` to completion:\n  ```bash\n  # Paginate all instances\n  aws rds describe-db-instances --output json --query 'DBInstances[*].[DBInstanceIdentifier,Engine,PubliclyAccessible,StorageEncrypted,MultiAZ,DeletionProtection,BackupRetentionPeriod,AutoMinorVersionUpgrade,MonitoringInterval]' --starting-token \"\u003CMarker from prior call>\"\n  # Fetch Aurora cluster metadata separately\n  aws rds describe-db-clusters --output json --query 'DBClusters[*].[DBClusterIdentifier,Engine,StorageEncrypted,DeletionProtection,BackupRetentionPeriod]'\n  ```\n\n- NEVER modify an instance with `DBInstanceStatus: deleting`,\n  `incompatible-parameters`, or `incompatible-restore`. The API rejects\n  modifications and the operator may be mid-recovery. Surface the status and\n  abort remediation.\n\n- NEVER assume a cross-region Read Replica is encrypted because the source is\n  encrypted. Cross-region replicas require a separate KMS CMK in the\n  destination region; if the replica was created with a misconfigured or\n  deleted key, its `StorageEncrypted` may read `true` while the key is\n  unusable. When auditing a cross-region replica, verify `KmsKeyId` resolves\n  to an active key in the replica's region, not just that the boolean is set.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing RDS operation\n  (`modify-db-instance`, `delete-db-instance`, `create-db-snapshot`), the\n  auditor MUST emit:\n  `CONFIRM: About to \u003Caction> on \u003Cdb-instance-identifier> in \u003Cregion>. This\n  affects \u003Cconsequence>. Proceed? (yes\u002Fno)`\n  Do NOT execute the CLI until the operator confirms. This gate prevents\n  automated pipelines from silently modifying production databases.\n- **Snapshot before destructive modifications.** Before Multi-AZ enablement,\n  encryption migration, or major remediation, capture a snapshot:\n  `aws rds create-db-snapshot --db-instance-identifier \u003Cid>\n  --db-snapshot-identifier pre-remediation-$(date +%s) --profile \u003Cp>`.\n  Encryption migration in particular is irreversible without a snapshot of\n  the original.\n- **Verify the instance is `available` before modifying.**\n  `aws rds describe-db-instances --db-instance-identifier \u003Cid>` — confirm\n  `DBInstanceStatus` is `available`. Modifying a `modifying`, `backing-up`,\n  or `creating` instance fails or queues behind existing work.\n- **Encryption migration is a cutover, not a patch.** The restore-new\n  instance has a new endpoint. Plan DNS\u002Fendpoint cutover, application\n  connection-string updates, and a rollback path (keep the original\n  unencrypted instance until cutover is verified). Never delete the original\n  until the encrypted replacement is confirmed serving traffic.\n- **Multi-AZ enablement causes a brief I\u002FO suspension.** Synchronous standby\n  creation suspends I\u002FO for a few minutes during standby provisioning. Schedule\n  outside peak write windows. The instance stays available but latency spikes.\n- **`--apply-immediately` vs maintenance window.** For PUBLIC and\n  NO_DELETION_PROTECTION findings, `--apply-immediately` is appropriate\n  (security\u002Faccidental-loss prevention). For SINGLE_AZ enablement and CONFIG_GAP\n  dimensions, ALWAYS omit `--apply-immediately` — Multi-AZ standby provisioning\n  causes an I\u002FO suspension of 1-3 minutes that will interrupt live writes. Queue\n  to the next maintenance window explicitly. Stacking `--apply-immediately` on\n  multiple dimensions at once compounds the disruption.\n- **Confirm the caller has `rds:ModifyDBInstance`.** Many read-only auditor\n  roles cannot modify. Surface this before the operator approves a change\n  that will fail with `AccessDenied`.\n- **Bulk-operation safety limit (enforced by the skill).** Remediation across\n  an account sweep MUST follow this exact algorithm:\n  1. Sort flagged instances verdict-first (PUBLIC before UNENCRYPTED, etc.).\n  2. Slice into batches of **at most 5 instances**.\n  3. For each batch: emit the per-instance REMEDIATION block, then a single\n     `CONFIRM: About to modify \u003Cid1, id2, …, idN> in \u003Cregion>. Proceed? (yes\u002Fno)`.\n  4. After the operator confirms and the CLI runs, re-query with\n     `aws rds describe-db-instances --db-instance-identifier \u003Ceach modified id>`\n     and verify the intended state landed before emitting the NEXT batch.\n  5. Abort the sweep if any instance in a batch enters `modifying`, `failed`,\n     or `incompatible-*` state — do NOT proceed to the next batch.\n  The skill MUST NOT emit remediation CLI for more than 5 instances in a\n  single output block. Auto-applying across an entire account in one pass is\n  forbidden: a single systematic misclassification or IaC-drift mismatch\n  cascades into mass disruption, and batched execution contains the blast\n  radius of any one mistake.\n\n## Remediation guidance\n\n**Ordering principle:** remediate findings in severity order (PUBLIC first),\nand prefer additive\u002Fonline changes over migrations where possible. Encryption\nis the only dimension that requires a migration — every other dimension has a\n`modify-db-instance` path.\n\n### For PUBLIC — internet-exposed database (Step 1)\n\n1. Immediately remove the public IP:\n   `aws rds modify-db-instance --db-instance-identifier \u003Cid>\n   --publicly-accessible false --apply-immediately --profile \u003Cp>`.\n   Existing public-IP connections drop; private-IP connections are unaffected.\n2. Audit the security group: if any inbound rule is `0.0.0.0\u002F0` on the DB\n   port (3306\u002F5432\u002F1433\u002Fetc.), tighten to the application's CIDR or security\n   group reference.\n3. If public access is genuinely required (rare — use a bastion or SSM Session\n   Manager instead), require TLS at the engine level (parameter group:\n   `rds.force_ssl=1` for PostgreSQL, require_secure_transport for MySQL) and\n   restrict the SG to a known egress CIDR.\n\n### For UNENCRYPTED — plaintext data at rest (Step 2)\n\n1. Snapshot:\n   `aws rds create-db-snapshot --db-instance-identifier \u003Cid>\n   --db-snapshot-identifier pre-encrypt-$(date +%s) --profile \u003Cp>`.\n2. Copy with encryption:\n   `aws rds copy-db-snapshot --source-db-snapshot-identifier \u003Csnap>\n   --target-db-snapshot-identifier \u003Csnap>-enc --kms-key-id \u003Ckms-id> --profile \u003Cp>`.\n3. Restore new encrypted instance:\n   `aws rds restore-db-instance-from-db-snapshot --db-instance-identifier\n   \u003Cid>-enc --db-snapshot-identifier \u003Csnap>-enc --profile \u003Cp>`.\n4. Cutover: rename the old instance (`--new-db-instance-identifier \u003Cid>-old`)\n   and rename the encrypted instance to the original identifier so the\n   endpoint absorbs. Verify application connectivity, then delete the old\n   unencrypted instance after a confirmation window.\n5. Enable deletion protection on the new encrypted instance as the last step.\n\n### For NO_DELETION_PROTECTION — accidental deletion (Step 3)\n\n`aws rds modify-db-instance --db-instance-identifier \u003Cid>\n--deletion-protection --apply-immediately --profile \u003Cp>`.\nFor Aurora, apply at the cluster: `aws rds modify-db-cluster`.\n\n### For SINGLE_AZ — availability gap (Step 4)\n\n`aws rds modify-db-instance --db-instance-identifier \u003Cid> --multi-az\n--profile \u003Cp>` (omit `--apply-immediately` — let it run in the next window).\nBrief I\u002FO suspension occurs during standby provisioning. Note: the standby is\nnot read-capable; for read scaling, provision Read Replicas separately.\n\n### For CONFIG_GAP — backups \u002F patching \u002F monitoring (Steps 5-7)\n\n- **Backups disabled** (`BackupRetentionPeriod: 0`):\n  `aws rds modify-db-instance --db-instance-identifier \u003Cid>\n  --backup-retention-period 7 --profile \u003Cp>`. Setting > 0 enables PITR and\n  triggers the first automated backup.\n- **Minor-version upgrade off** (`AutoMinorVersionUpgrade: false`):\n  `aws rds modify-db-instance --db-instance-identifier \u003Cid>\n  --auto-minor-version-upgrade --profile \u003Cp>`. The upgrade runs in the next\n  maintenance window.\n- **Enhanced Monitoring off** (`MonitoringInterval: 0`): first create or\n  reuse the `AmazonRDSEnhancedMonitoringRole` IAM role, then:\n  `aws rds modify-db-instance --db-instance-identifier \u003Cid>\n  --monitoring-interval 60 --monitoring-role-arn \u003Crole-arn> --profile \u003Cp>`.\n\n### For OK\n\n1. No remediation required for the current posture.\n2. Recommend a defense-in-depth SG review (no `0.0.0.0\u002F0` inbound) and TLS\n   enforcement at the parameter-group level.\n3. For Aurora, verify the DBCluster posture independently (this skill audits\n   instance-level fields; cluster-level audit is a separate scope).\n\n## Reference — edge cases\n\n> Moved verbatim to [`references\u002Fadvanced-patterns.md`](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n## Recent AWS features (2024-2026)\n\n> Moved verbatim to [`references\u002Fadvanced-patterns.md`](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n## References (load on demand)\n\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — account-wide paginated describe-db-instances \u002F describe-db-clusters sweep.\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — malformed-metadata ERROR contract deep dive (missing fields, type mismatches).\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — philosophy, Step 0 expert RDS behaviours, edge-case catalog, recent AWS features.\n\n## Domain\n\nAWS CloudOps \u002F RDS Database Security, Availability & Operational Posture.\n\n## AWS documentation\n\n- **Amazon RDS User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FWelcome.html\n- **Security in Amazon RDS** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002FUsingWithRDS.html\n- **Amazon RDS API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI RDS reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Frds\u002F\n- **Blue\u002FGreen deployments** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FUserGuide\u002Fblue-green-deployments.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"complexity":32,"entry_point":33,"when_to_use":34,"requires_llm":35,"verdict_shape":36,"when_not_to_use":37,"invocation_schema":38,"supports_pipeline":35,"invocation_example":39,"activation_triggers":40},"rds, databases, security, availability, encryption, backups, multi-az, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","Databases","0.1.0","RDS, DB instance, public accessibility, encryption-at-rest, StorageEncrypted, Multi-AZ, deletion protection, automated backups, BackupRetentionPeriod, minor version upgrade, Enhanced Monitoring, PITR, Aurora cluster scope, database audit, data loss prevention, PubliclyAccessible, DB instance hardening","high","false","Reviewing an RDS DB instance configuration before production deployment, checking whether a database is internet-reachable, validating encryption-at-rest, auditing deletion-protection or backup coverage, verifying Multi-AZ posture, or hardening database instance configuration across an account.","true","PUBLIC | UNENCRYPTED | NO_DELETION_PROTECTION | SINGLE_AZ | CONFIG_GAP | OK","Aurora cluster-level posture audits (use the DBCluster block directly), performance-tuning or query optimization, IAM\u002Fauth analysis (password policies, IAM database authentication), certificate\u002FTLS expiry checks (acm-certificate-expiry-auditor), KMS key-policy or rotation audits (kms-key-policy-auditor), or subnet\u002Froute-table reachability analysis. This skill classifies configuration posture from instance metadata — it does not perform live connectivity or penetration testing.","Input: either (a) an RDS DB instance configuration (describe-db-instances metadata), optionally paired with the DBCluster block for Aurora engines, OR (b) a db-instance-identifier for live-account audit. Output: deterministic INSTANCE\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per instance, where VERDICT ∈ {PUBLIC, UNENCRYPTED, NO_DELETION_PROTECTION, SINGLE_AZ, CONFIG_GAP, OK, ERROR}.","# Minimal valid input (offline metadata classification):\nDBInstanceIdentifier: db-prod-mysql-01\nEngine: mysql\nDBInstanceStatus: available\nPubliclyAccessible: false\nStorageEncrypted: true\nKmsKeyId: arn:aws:kms:us-east-1:111111111111:key\u002Fabc\nMultiAZ: true\nDeletionProtection: false\nBackupRetentionPeriod: 7\nAutoMinorVersionUpgrade: true\nMonitoringInterval: 60\n# For Aurora, also supply the DBCluster block:\n# DBClusterIdentifier, StorageEncrypted, DeletionProtection,\n# BackupRetentionPeriod (cluster is authoritative for these).","audit this RDS instance, is my database public, check RDS encryption, is deletion protection enabled, are automated backups on, Multi-AZ check, minor version upgrade, Enhanced Monitoring off, harden RDS instance, PubliclyAccessible true, BackupRetentionPeriod zero","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline metadata classification. Live-account audits use aws rds describe-db-instances and aws rds describe-db-clusters (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Frds-instance-auditor",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":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill rds-instance-auditor",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill rds-instance-auditor",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill rds-instance-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",7405,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fconfig-gap-stale.md",430,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fbaselines\u002Fconfig-gap-stale.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fhardened-multi-az-prod.md",354,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fbaselines\u002Fhardened-multi-az-prod.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fno-deletion-protection-prod.md",342,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fbaselines\u002Fno-deletion-protection-prod.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fpublic-and-unencrypted.md",699,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fbaselines\u002Fpublic-and-unencrypted.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fsingle-az-dev.md",384,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fbaselines\u002Fsingle-az-dev.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Fbaselines\u002Funencrypted-internal-db.md",348,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fbaselines\u002Funencrypted-internal-db.md",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Feval_config.yaml",1989,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Feval_config.yaml",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fevals.json",5233,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fevals.json",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fconfig-gap-stale.md",515,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fprompts\u002Fconfig-gap-stale.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fhardened-multi-az-prod.md",533,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fprompts\u002Fhardened-multi-az-prod.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fno-deletion-protection-prod.md",537,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fprompts\u002Fno-deletion-protection-prod.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fpublic-and-unencrypted.md",469,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fprompts\u002Fpublic-and-unencrypted.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"evals\u002Fprompts\u002Fsingle-az-dev.md",511,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fprompts\u002Fsingle-az-dev.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"evals\u002Fprompts\u002Funencrypted-internal-db.md",474,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fevals\u002Fprompts\u002Funencrypted-internal-db.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"examples\u002Fend-to-end.md",5690,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fexamples\u002Fend-to-end.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fadvanced-patterns.md",12517,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fdiagnostic-commands.md",613,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Freferences\u002Fdiagnostic-commands.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Ferror-handling.md",1199,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Freferences\u002Ferror-handling.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"skill.usf.yaml",4190,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frds-instance-auditor\u002Fskill.usf.yaml",[147,154,161,168,175,182],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"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":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"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":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"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":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"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":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"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":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"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",[],[]]