[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A6PDMZGJE8B7B68RBX8ZWZ":3,"skill-same:01M7A6PDMZGJE8B7B68RBX8ZWZ":148},{"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":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M7A6PDMZGJE8B7B68RBX8ZWZ","directconnect-auditor",null,"Audits AWS Direct Connect (DX) topology for resilience and security posture — physical-layer redundancy (2+ connections at diverse DX locations, not the same POP), MACSec link encryption on capable hardware, BGP peer authentication (especially on public VIFs where route hijack is trivial), virtual-interface redundancy across diverse connections via a Direct Connect Gateway, and LOA-CFA provisioning state. Emits a deterministic verdict (SINGLE_CONNECTION | NO_ENCRYPTION | CONFIG_GAP | OK) per topology with enumerated findings and specific CLI remediation. Use when reviewing Direct Connect connections, checking for single-path failure risk, validating MACSec enforcement, auditing BGP auth on public VIFs, or hardening hybrid-network posture before production cutover.","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\u002Fdirectconnect-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: directconnect-auditor\ndescription: Audits AWS Direct Connect (DX) topology for resilience and security posture — physical-layer redundancy (2+ connections at diverse DX locations, not the same POP), MACSec link encryption on capable hardware, BGP peer authentication (especially on public VIFs where route hijack is trivial), virtual-interface redundancy across diverse connections via a Direct Connect Gateway, and LOA-CFA provisioning state. Emits a deterministic verdict (SINGLE_CONNECTION | NO_ENCRYPTION | CONFIG_GAP | OK) per topology with enumerated findings and specific CLI remediation. Use when reviewing Direct Connect connections, checking for single-path failure risk, validating MACSec enforcement, auditing BGP auth on public VIFs, or hardening hybrid-network posture before production cutover.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline topology classification from describe-connections \u002F describe-virtual-interfaces JSON output. Live-account audits use aws directconnect describe-connections, describe-virtual-interfaces, describe-lags, describe-connection-loa, and describe-bgp-peers (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: Networking\n  verdict_shape: SINGLE_CONNECTION | NO_ENCRYPTION | CONFIG_GAP | OK\n  when_to_use: Reviewing Direct Connect topology before production cutover, checking for single-path or single-facility failure risk, validating MACSec enforcement on capable hardware, auditing BGP peer auth on public VIFs (route-hijack defence), confirming LOA-CFA issuance for connections stuck in requested, or hardening hybrid-network resilience across regions.\n  activation_triggers: audit this Direct Connect connection, is my DX redundant, MACSec check Direct Connect, BGP auth public VIF, LOA stuck pending, diverse location Direct Connect, single path failure risk DX, route hijack public VIF, LAG redundancy audit, Direct Connect Gateway failover\n  invocation_schema: 'Input: either (a) describe-connections + describe-virtual-interfaces JSON (optionally paired with describe-lags and describe-connection-loa output), OR (b) a connection-id or LAG-id for live-account audit. Output: deterministic CONNECTION\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per topology, where VERDICT ∈ {SINGLE_CONNECTION, NO_ENCRYPTION, CONFIG_GAP, OK, ERROR}.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: Direct Connect, DX, MACSec, BGP, virtual interface, private VIF, public VIF, transit VIF, LOA-CFA, redundancy, diverse location, Link Aggregation Group, LAG, Direct Connect Gateway, DXGW, route hijack, BGP MD5, hybrid networking, link encryption, 802.1AE, transit gateway, hybrid DC\n  tags: directconnect, networking, macsec, bgp, redundancy, encryption, loa, audit\n---\n\n# Direct Connect Auditor\n\n## Quick start\n\nVerdict is the worst finding across four ordered dimensions:\n`SINGLE_CONNECTION > NO_ENCRYPTION > CONFIG_GAP > OK`. Run them in order,\nstop at the first non-OK verdict.\n\n1. **Redundancy:** 2+ diversity units (a LAG counts as ONE unit) at **distinct\n   `locationCode`s** — else `SINGLE_CONNECTION`. Two connections at the same\n   POP are pseudo-diversity.\n2. **MACSec:** dedicated, MACSec-capable connection with `encryptionMode`\n   `no_encrypt` or `should_encrypt` — `NO_ENCRYPTION`. Skip hosted connections\n   (hardware-ineligible).\n3. **BGP \u002F LOA \u002F VIF:** public VIF without MD5, private ASN on public VIF, BGP\n   `down` on `available`, LOA stuck `requested` >5 business days, single VIF\n   on a single connection — `CONFIG_GAP`.\n4. **OK:** all four dimensions pass.\n\nThe full severity matrix, per-field edge-case resolution, and the pre-flight\nmetadata gate live in the **Reference** section at the end of this document.\nExpert knowledge deltas and the canonical checklist are inline below.\n\n## Critical rules — read first\n\nFour invariants that change the verdict if missed; each is expanded with full\ncontext in the referenced section below.\n\n- **Confirmation gate mandatory** before any state-changing CLI — DX is\n  physical-layer, a mistake drops all hybrid traffic (Pre-flight safety\n  checks).\n- **Diversity is `locationCode`-based, not count-based** — two connections at\n  the same POP are pseudo-diversity, a LAG is one unit (Step 1).\n- **`bgpAuthKey` is write-only (always null), `should_encrypt` silently\n  downgrades to plaintext, hosted connections cannot run MACSec** — these\n  three produce the most false positives (Steps 0, 2, 3a).\n- **BGP auth requires VIF re-creation, provisioning takes weeks** — never\n  auto-execute remediation (Step 3a, Pre-flight safety checks).\n\n## Mindset\n\n**One-line takeaway:** the verdict is always the **worst** finding across four\nordered dimensions, and the single most common misclassification is treating\n\"two connections\" as redundancy without checking they terminate at **different\nDX locations** — two cross-connects into the same POP fall together in any\nfacility-level event (power, cooling, fibre-cut on the building's meet-me-room).\n\nDirect Connect is a **physical-layer** service: a fibre cross-connect from a\ncustomer cage (or partner cage) into an AWS DX patch panel at a colocation\nfacility. Everything above layer-2 rides on that physical path.\n- **A single connection is a single point of failure** for the entire hybrid\n  network, regardless of how many VIFs ride on it. LAG within one facility\n  adds interface resilience but not facility resilience.\n- **MACSec (IEEE 802.1AE)** is link-level encryption. When `encryptionMode` is\n  `should_encrypt` instead of `must_encrypt`, the link falls back to plaintext\n  the moment a MACSec peer fails to negotiate — silent downgrade, no CloudWatch\n  alarm by default.\n- **BGP on a public VIF without MD5 auth is a route-hijack vector.** The public\n  Internet routing ecosystem treats the advertised prefix as authoritative; a\n  missing `bgpAuthKey` on a public VIF lets any peer that compromises the\n  session inject more-specific routes that attract traffic.\n- **A Direct Connect Gateway is the unit of multi-region VIF failover.** A VIF\n  attached to a single Virtual Private Gateway is pinned to one VPC and one\n  region — failover requires a second VIF on a second, diverse connection.\n\n## Quick reference — severity thresholds\n\nApply the steps in order. The verdict is the **worst** finding, where\n`SINGLE_CONNECTION > NO_ENCRYPTION > CONFIG_GAP > OK`. The full condition →\nverdict → step matrix is in **Reference — Severity matrix** at the end of\nthis document.\n\n## Pre-flight: connection metadata gate\n\nSeveral attributes **short-circuit** the audit — misclassifying them produces\nfalse positives. The full per-attribute and per-field resolution tables are in\n**Reference — Metadata gate** and **Reference — Edge-case field handling** at\nthe end of this document. The short list every auditor must apply before\nstepping into Step 1:\n\n- `lagId` set → connection is a LAG **member**, not standalone; audit the LAG.\n- `bandwidth` `1Gbps`\u002F`2Gbps`\u002F`5Gbps`\u002F`50-500Mbps` → hosted connection,\n  MACSec not supported (hardware gate, not a posture gap).\n- `connectionMode: transit` → APN-partner-owned port; MACSec is the partner's\n  responsibility, flag `macSecCapable: false` as N\u002FA.\n- `hasLogicalRedundancy: yes` → LAG-level port redundancy **inside one\n  location**, NOT facility diversity.\n- `connectionState: down` → physical link down; treat as CONFIG_GAP if any\n  other path is available, SINGLE_CONNECTION if this is the only path.\n\nLive-account pagination note and canonical enumeration commands (unfiltered describe-connections \u002F describe-virtual-interfaces \u002F describe-lags; no NextToken, cross-account truncation at 1,000) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it before fetching live-account topology.\n\nMalformed-topology ERROR-verdict output block (invalid JSON, missing connectionId, missing virtualInterfaceId) moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\nLoad it when the input JSON fails the malformed gate in the Canonical checklist.\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious DX behaviours that change classification\n\nStep 0 expert knowledge — all nineteen non-obvious DX behaviours (same-POP pseudo-diversity, LAG as one unit, hosted-connection MACSec gate, should_encrypt silent downgrade, write-only bgpAuthKey, public-VIF MD5, private-ASN filtering, MTU 9001 public-VIF cap, VIF redundancy via diverse connections, DXGW multi-region lift, LOA-CFA time bounds, ConnectionState authority, 30-association DXGW limit, asynchronous DXGW route propagation, BGP graceful restart, cross-account assumed-role enumeration, port-based billing of down connections, MACSec CAK\u002FCKN overlap rotation, locationCode vs physical building) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it before classifying any non-trivial topology.\n\n### Step 1: Redundancy audit (SINGLE_CONNECTION — highest priority)\n\nFor each LAG (from `describe-lags`) and each standalone connection (not a LAG\nmember), enumerate the **diversity unit**:\n\n1. **Build the diversity set.** For each LAG, the diversity unit is the LAG\n   itself (location = LAG's `locationCode`, ignore member locations — they are\n   identical). For each standalone connection, the unit is the connection\n   itself with its own `locationCode`. Count diversity units, NOT individual\n   connections.\n\n2. **Check state.** Only count diversity units in `available` state (or LAGs\n   with `lagState: available`). Units in `requested`\u002F`pending`\u002F`down` are not\n   carrying production traffic; flag them as separate CONFIG_GAP findings but\n   exclude from the redundancy count.\n\n3. **Group by `locationCode`.** Two diversity units at the same location are\n   **not diverse** — they share facility risk.\n\n4. **Verdict:**\n   - **\u003C2 available diversity units at distinct locations** →\n     **SINGLE_CONNECTION** (HIGH). The topology has a single failure domain\n     for the entire hybrid network.\n   - **2+ available diversity units, but all share one location** →\n     **SINGLE_CONNECTION** (HIGH). Pseudo-diversity — same-facility risk.\n   - **2+ available diversity units at ≥2 distinct locations** → proceed to\n     Step 2.\n\n**Special case — single LAG at one location, single standalone at another:**\nthis IS diverse (2 distinct locations). A common design is \"primary LAG +\ndiverse standalone backup\" — exactly the AWS Resilient Hybrid Architecture\nreference pattern.\n\n### Step 2: MACSec encryption audit (NO_ENCRYPTION)\n\nFor each **diversity unit** that passed Step 1:\n\n1. **Gate on hardware eligibility.** Skip MACSec audit for:\n   - Hosted connections (`bandwidth: 1Gbps`, `2Gbps`, `5Gbps`, or sub-1Gbps).\n   - Any connection where `macSecCapable: false` AND `bandwidth` is a hosted\n     tier — capability is a hardware constraint.\n   - `connectionMode: transit` (partner-owned port; MACSec is the partner's\n     responsibility).\n\n2. **Check `macSecCapable`.** If `true`, MACSec is supported at this location\n   and bandwidth. If `false` on a dedicated 10\u002F100 Gbps connection, the\n   location is not MACSec-enabled — flag as CONFIG_GAP (consider IPsec overlay\n   or relocation to a MACSec-capable POP), not NO_ENCRYPTION.\n\n3. **Check `encryptionMode`** for each `macSecCapable: true` connection:\n   - `must_encrypt` → OK for this dimension.\n   - `should_encrypt` → **NO_ENCRYPTION** (HIGH). Silent-downgrade capable.\n     A misconfigured CE drops MACSec without operator action.\n   - `no_encrypt` → **NO_ENCRYPTION** (HIGH). MACSec disabled on capable\n     hardware.\n\n4. **Verdict:** any single connection triggering NO_ENCRYPTION makes the\n   topology NO_ENCRYPTION (the cleartext path is the weakest link).\n\n### Step 3: BGP \u002F LOA \u002F VIF audit (CONFIG_GAP)\n\nRun these only if Step 1 and Step 2 passed.\n\n#### Step 3a: BGP auth on public VIFs\n\nFor each VIF with `virtualInterfaceType: public`:\n- Check the authoritative BGP peer state (from `describe-bgp-peers`, or the\n  input's explicit `authKeyState` \u002F `authKey`-at-creation marker). **Do NOT\n  use the `bgpAuthKey: null` field from describe-virtual-interfaces — it is\n  write-only and always null** (Step 0). If auth was never configured\n  (`authKeyState: never-configured-at-creation`, or no auth key supplied in\n  the original create-VIF call) → **CONFIG_GAP** (MEDIUM). Public prefix\n  advertisement without BGP auth is a route-hijack vector.\n- Check `customerPeerAsn`: if it falls in the private ASN range\n  (64512-65534 or 4200000000-4294967294) on a public VIF, AWS will filter\n  the routes → **CONFIG_GAP** (MEDIUM). Routes are silently dropped.\n- Check `mtu`: if `9001` on a public VIF → **CONFIG_GAP** (LOW). AWS caps\n  at 1500; jumbo fragments.\n\nFor each VIF (any type) with `bgpPeers[].bgpStatus: down` on an\n`available` connection → **CONFIG_GAP** (MEDIUM). BGP session down on an\navailable link is a control-plane outage.\n\n#### Step 3b: VIF redundancy\n\nFor each private\u002Ftransit VIF:\n- If only one VIF exists in the topology, and it rides on a single\n  connection (even if the connection is a diverse-location pair), there is\n  no VIF-level failover → **CONFIG_GAP** (MEDIUM). One VIF on one\n  connection is a control-plane single point of failure.\n- If two VIFs exist but both ride the same connection, same failure domain\n  → **CONFIG_GAP** (MEDIUM).\n- If two VIFs ride diverse connections but neither is attached to a DXGW,\n  failover is regional-only (each VIF is pinned to one VGW) → CONFIG_GAP\n  (LOW). Multi-region failover requires a DXGW.\n\n#### Step 3c: LOA-CFA provisioning state\n\nFor each connection in `connectionState: requested`:\n- If held in `requested` for >5 business days without a retrievable LOA-CFA\n  (`describe-connection-loa --connection-id \u003Cid>` returns an error or empty\n  response), the partner cannot cross-connect → **CONFIG_GAP** (MEDIUM).\n  This is a provisioning blocker.\n\nFor each connection in `connectionState: pending` for >10 business days:\n- The cross-connect is in progress; >10 business days suggests a partner\n  delay → **CONFIG_GAP** (LOW).\n\n### Step 4: Aggregation — worst finding wins\n\n```text\nverdict = max(all_redundancy_findings,\n              all_encryption_findings,\n              all_config_gap_findings,\n              OK)\n```\n\nPriority: SINGLE_CONNECTION > NO_ENCRYPTION > CONFIG_GAP > OK.\n\n## Canonical checklist (run in this order)\n\nA single sequential list the auditor follows top-to-bottom for every topology.\nEach step either sets the verdict (worst-so-far wins) or moves on.\n\n1. **Fetch (no `--connection-id` filter):**\n   `describe-connections` → `describe-virtual-interfaces` → `describe-lags`.\n   If a public VIF is present, also `describe-bgp-peers --virtual-interface-id`\n   per VIF (the authoritative authKey source).\n2. **Malformed JSON gate:** invalid JSON, missing `connectionId`, or missing\n   `virtualInterfaceId` → emit `VERDICT: ERROR` and stop.\n3. **Metadata gate (per Reference — Metadata gate):** classify each connection\n   as LAG-member \u002F hosted \u002F dedicated, and each `connectionState`.\n4. **Step 1 — Redundancy:** group diversity units by `locationCode`.\n   Verdict moves to `SINGLE_CONNECTION` if \u003C2 units at distinct codes.\n5. **Step 2 — MACSec:** for each dedicated MACSec-capable unit, check\n   `encryptionMode`. Verdict moves to `NO_ENCRYPTION` on `no_encrypt` or\n   `should_encrypt`.\n6. **Step 3a — BGP auth (public VIFs):** never use the write-only\n   `bgpAuthKey`; use `authKeyState` from `describe-bgp-peers`. Missing auth\n   on a public VIF → verdict moves to `CONFIG_GAP`.\n7. **Step 3b — BGP session state:** any `bgpStatus: down` on an `available`\n   connection → `CONFIG_GAP`.\n8. **Step 3c — LOA:** `requested` >5 business days with no LOA-CFA, or\n   `pending` >10 business days → `CONFIG_GAP`.\n9. **Step 3d — VIF redundancy:** single VIF on a single connection, or two\n   VIFs without a DXGW attachment → `CONFIG_GAP`.\n10. **Step 4 — Aggregate:** worst-so-far wins. If nothing fired, emit `OK`.\n\n## Output format (per topology)\n\n```text\nCONNECTION: \u003Cprimary connection-id or LAG-id>\nVERDICT: SINGLE_CONNECTION | NO_ENCRYPTION | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step number>\nFINDINGS:\n  - [HIGH] \u003Cfinding description (Step N)>\n  - [MEDIUM] \u003Cfinding description (Step N)>\n  - [OK] \u003Cdimension that passed>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Failure handling — partial API failures and missing fields\n\nPartial API failure and missing-field fallback table (describe-bgp-peers throttling, empty peers array, absent offline fields, LOA errors, mid-stream truncation) moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\nLoad it when any describe-* call fails or a required field is absent.\n\n**Single-summary rule:** emit exactly ONE `CONNECTION \u002F VERDICT \u002F REASON \u002F\nFINDINGS \u002F REMEDIATION` block per topology. Do not split findings across\nmultiple blocks — aggregate into one `FINDINGS:` list, ordered\n`[HIGH] → [MEDIUM] → [LOW] → [OK]`.\n\n### Worked example — pseudo-diversity with BGP gap\n\n```text\nCONNECTION: dxcon-primary (LAG dxlag-prod)\nVERDICT: SINGLE_CONNECTION\nREASON: Both diversity units (LAG dxlag-prod at EqSE2, standalone dxcon-backup\nat EqSE2) share location EqSE2 — facility-level event takes both down (Step 1).\nBGP peer on VIF dxvif-public-prod is missing bgpAuthKey (Step 3a, would be\nCONFIG_GAP if redundancy were addressed).\nFINDINGS:\n  - [HIGH] Both connections terminate at location EqSE2 — pseudo-diversity, no\n    facility resilience (Step 1)\n  - [MEDIUM] Public VIF dxvif-public-prod has no BGP MD5 auth — route-hijack\n    vector (Step 3a)\n  - [OK] MACSec must_encrypt enabled on both capable connections\nREMEDIATION:\n  1. Provision a third connection at a different DX location (e.g., EqDC2 or\n     any location with a different facility code). Migrate the backup VIF\n     there.\n  2. Add BGP MD5: re-create the public VIF with --auth-key, or migrate to a\n     new VIF with auth. Existing VIFs cannot have auth added in-place.\n```\n\n### Worked example — malformed topology (ERROR)\n\nWorked example — malformed topology (ERROR) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md); the primary pseudo-diversity worked example stays inline.\nLoad it when exercising the ERROR path.\n\n## Anti-Patterns — NEVER\n\n- NEVER treat \"two connections\" as redundant without comparing `locationCode`.\n  Two connections at `EqSE2` are one fibre-cut away from simultaneous failure.\n  The diversity check is **location-based**, not count-based.\n\n- NEVER count LAG members as independent diversity units. A LAG is one logical\n  connection at one location; member links share the AWS patch panel and\n  facility. Count the LAG, not the members.\n\n- NEVER flag `macSecCapable: false` on a **hosted connection** (1Gbps \u002F 2Gbps\n  \u002F 5Gbps \u002F sub-1Gbps partner offerings) as NO_ENCRYPTION. MACSec is a\n  hardware-feature gate — hosted connections physically cannot run 802.1AE.\n  The remediation is IPsec, not \"enable MACSec.\"\n\n- NEVER flag `bgpAuthKey: null` from `describe-virtual-interfaces` as missing\n  auth. The field is write-only — AWS returns null for every existing VIF\n  regardless of configuration. Use `describe-bgp-peers --virtual-interface-id\n  \u003Cid>` for the authoritative peer state, or infer from the input's\n  `bgpPeers[].authKey` if supplied.\n\n- NEVER treat `encryptionMode: should_encrypt` as equivalent to\n  `must_encrypt`. `should_encrypt` permits silent downgrade to plaintext when\n  the peer fails to negotiate MACSec — it is operationally cleartext-capable.\n  Classify as NO_ENCRYPTION.\n\n- NEVER assume `hasLogicalRedundancy: yes` means facility diversity. It\n  indicates LAG-level port redundancy **within one location**. The flag is\n  AWS-populated, not a guarantee of POP-level resilience.\n\n- NEVER conclude a connection is `available` from CloudWatch metrics alone.\n  `ConnectionState` is the authoritative state; throughput metrics can lag\n  or persist briefly after a flap. Always cross-reference the\n  `connectionState` field from `describe-connections`.\n\n- NEVER recommend deleting a hosted connection to \"enable MACSec.\" Hosted\n  connections are partner-billed and have contract terms; the MACSec gap is\n  remediated via IPsec overlay (transit-gateway IPsec, site-to-site VPN) or\n  by procuring a dedicated port — not by deleting the hosted connection.\n\n- NEVER recommend BGP MD5 remediation as \"add the key to the existing VIF.\"\n  BGP auth cannot be modified in-place; the VIF must be re-created (or a new\n  VIF provisioned and the old one decommissioned after traffic cutover).\n  Always include the cutover step in the remediation.\n\n- NEVER flag a public VIF with a private ASN (64512-65534) as a security\n  issue — it is a **routing-acceptance** issue. AWS silently filters the\n  routes; the prefix is not advertised. The remediation is to obtain a\n  public ASN from a RIR or use the AWS-provided ASN if eligible.\n\n- NEVER overlook a public VIF without BGP auth. Public prefix advertisement\n  without MD5 is a route-hijack vector — a more-specific prefix from a\n  spoofed peer attracts traffic from the global Internet. This is\n  CONFIG_GAP at minimum; CRITICAL-tier concern for any prefix in the global\n  routing table.\n\n- NEVER assume a DXGW propagates VIF failover automatically without\n  route-table configuration. The DXGW has its own route table; VIF failover\n  depends on AS-path prepending or local-pref tuning on the CE side.\n  Flag missing route-pref config as CONFIG_GAP (LOW).\n\n- NEVER assume a DXGW association is active immediately after creation.\n  `create-direct-connect-gateway-association` is asynchronous; the route\n  table on the VGW\u002FTGW side does not update until the association reaches\n  `associated` state. Emit `describe-direct-connect-gateway-attachments`\n  and verify state before declaring failover ready. A VIF riding on a\n  `pending` association has no route propagation — traffic black-holes.\n\n- NEVER leave an old VIF active after re-creating it for BGP auth or MACSec\n  remediation. Two VIFs advertising the same prefix from the same connection\n  cause route oscillation and unpredictable path selection. After the new\n  VIF is verified up and routes are migrated, the old VIF MUST be deleted\n  (`delete-virtual-interface`) — or at minimum its BGP session shut — before\n  declaring the remediation complete. Forgetting this step is the #1 cause\n  of post-remediation asymmetric routing.\n\n- NEVER treat `directconnect describe-virtual-interfaces` (no filter) and\n  `describe-virtual-interfaces --connection-id \u003Cid>` as equivalent. The\n  filtered call misses VIFs whose underlying connection was swapped during\n  a maintenance event or a VIF migration — the VIF retains its original\n  `virtualInterfaceId` but its `connectionId` now points at the new\n  connection. The filtered listing silently returns nothing for that VIF,\n  producing a false \"no VIFs here\" verdict. The unfiltered call is the\n  only complete listing. Always use the unfiltered form for audit, then\n  correlate by `connectionId` in post-processing.\n\n- NEVER flag a connection in `requested` for fewer than 5 business days as a\n  LOA blocker. AWS SLA for LOA issuance is 72 hours; partner-side cross-\n  connect adds 2 business days. Allow 5 business days before raising.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nPre-flight safety checks (CONFIRM gate, VIF re-creation backup, MACSec both-ends readiness, weeks-long provisioning lead time, DXGW global-vs-regional scope, non-disruptive BGP re-key via VIF migration) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad them before emitting or executing any remediation CLI.\n\n## Remediation guidance\n\nFull per-verdict remediation playbooks with CLI (SINGLE_CONNECTION diverse-location provisioning, NO_ENCRYPTION MACSec\u002FIPsec, CONFIG_GAP BGP auth via VIF re-creation \u002F LOA re-request \u002F DXGW failover, OK monitoring recommendations) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad the matching playbook once the verdict is decided.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (2024-2026) — MACsec GA expansion, enhanced CloudWatch DX metrics, DX Gateway enhancements — moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when re-checking previously non-MACsec-capable connections.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert-knowledge deep dive, per-verdict remediation playbooks, metadata-gate and edge-case field tables, Recent AWS features (2024-2026) moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — canonical enumeration\u002Fpagination commands and pre-flight safety checks moved from SKILL.md\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — malformed-topology ERROR block and partial API failure fallback table moved from SKILL.md\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — malformed-topology (ERROR) worked example moved from SKILL.md; the primary pseudo-diversity example stays in SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F Hybrid Networking Resilience & Compliance.\n\n## Reference — Severity matrix\n\nFull condition → verdict → step mapping. Apply in order; the verdict is the\n**worst** finding, where `SINGLE_CONNECTION > NO_ENCRYPTION > CONFIG_GAP > OK`.\n\n| Condition | Verdict | Step |\n|---|---|---|\n| \u003C2 connections at **diverse** DX locations (`locationCode`) | **SINGLE_CONNECTION** | 1 |\n| LAG with all member connections at the same `locationCode` | **SINGLE_CONNECTION** | 1 |\n| 2 connections at the same `locationCode` (pseudo-diversity) | **SINGLE_CONNECTION** | 1 |\n| Dedicated connection, `macSecCapable: true`, `encryptionMode: no_encrypt` | **NO_ENCRYPTION** | 2 |\n| Dedicated connection, `macSecCapable: true`, `encryptionMode: should_encrypt` | **NO_ENCRYPTION** | 2 (silent-downgrade risk) |\n| Public VIF with no `bgpAuthKey` set (use `authKeyState`, not the write-only field) | **CONFIG_GAP** | 3a |\n| BGP peer `bgpStatus: down` on an `available` connection | **CONFIG_GAP** | 3b |\n| Connection `state: requested` >5 business days with no LOA-CFA | **CONFIG_GAP** | 3c |\n| Single private VIF on a single connection (no DXGW failover) | **CONFIG_GAP** | 3d |\n| 2+ diverse connections, MACSec `must_encrypt` (or N\u002FA hosted), BGP auth on all public VIFs, valid LOA or `available` | **OK** | 4 |\n\n## Reference — Metadata gate\n\nFull per-attribute metadata-gate table (lagId, connectionMode, bandwidth tiers, location, hasLogicalRedundancy, connectionState transitions) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md); the short list above stays inline.\nLoad it when a pre-flight attribute is set and ambiguous.\n\n## Reference — Edge-case field handling\n\nEdge-case field-handling table (authKeyState variants, missing or empty bgpPeers array, absent authKeyState in offline JSON) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when Step 3 fields are absent, redacted, or truncated.\n\n## AWS documentation\n\n- **AWS Direct Connect User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdirectconnect\u002Flatest\u002FUserGuide\u002FWelcome.html\n- **Direct Connect Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdirectconnect\u002Flatest\u002FUserGuide\u002Fsecurity.html\n- **Direct Connect API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdirectconnect\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI Command Reference (directconnect)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fdirectconnect\u002F\n- **MACsec for Direct Connect** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdirectconnect\u002Flatest\u002FUserGuide\u002Fdirect-connect-macsec.html\n","# Direct Connect Auditor\n\n## Quick start\n\nVerdict is the worst finding across four ordered dimensions:\n`SINGLE_CONNECTION > NO_ENCRYPTION > CONFIG_GAP > OK`. Run them in order,\nstop at the first non-OK verdict.\n\n1. **Redundancy:** 2+ diversity units (a LAG counts as ONE unit) at **distinct\n   `locationCode`s** — else `SINGLE_CONNECTION`. Two connections at the same\n   POP are pseudo-diversity.\n2. **MACSec:** dedicated, MACSec-capable connection with `encryptionMode`\n   `no_encrypt` or `should_encrypt` — `NO_ENCRYPTION`. Skip hosted connections\n   (hardware-ineligible).\n3. **BGP \u002F LOA \u002F VIF:** public VIF without MD5, private ASN on public VIF, BGP\n   `down` on `available`, LOA stuck `requested` >5 business days, single VIF\n   on a single connection — `CONFIG_GAP`.\n4. **OK:** all four dimensions pass.\n\nThe full severity matrix, per-field edge-case resolution, and the pre-flight\nmetadata gate live in the **Reference** section at the end of this document.\nExpert knowledge deltas and the canonical checklist are inline below.\n\n## Critical rules — read first\n\nFour invariants that change the verdict if missed; each is expanded with full\ncontext in the referenced section below.\n\n- **Confirmation gate mandatory** before any state-changing CLI — DX is\n  physical-layer, a mistake drops all hybrid traffic (Pre-flight safety\n  checks).\n- **Diversity is `locationCode`-based, not count-based** — two connections at\n  the same POP are pseudo-diversity, a LAG is one unit (Step 1).\n- **`bgpAuthKey` is write-only (always null), `should_encrypt` silently\n  downgrades to plaintext, hosted connections cannot run MACSec** — these\n  three produce the most false positives (Steps 0, 2, 3a).\n- **BGP auth requires VIF re-creation, provisioning takes weeks** — never\n  auto-execute remediation (Step 3a, Pre-flight safety checks).\n\n## Mindset\n\n**One-line takeaway:** the verdict is always the **worst** finding across four\nordered dimensions, and the single most common misclassification is treating\n\"two connections\" as redundancy without checking they terminate at **different\nDX locations** — two cross-connects into the same POP fall together in any\nfacility-level event (power, cooling, fibre-cut on the building's meet-me-room).\n\nDirect Connect is a **physical-layer** service: a fibre cross-connect from a\ncustomer cage (or partner cage) into an AWS DX patch panel at a colocation\nfacility. Everything above layer-2 rides on that physical path.\n- **A single connection is a single point of failure** for the entire hybrid\n  network, regardless of how many VIFs ride on it. LAG within one facility\n  adds interface resilience but not facility resilience.\n- **MACSec (IEEE 802.1AE)** is link-level encryption. When `encryptionMode` is\n  `should_encrypt` instead of `must_encrypt`, the link falls back to plaintext\n  the moment a MACSec peer fails to negotiate — silent downgrade, no CloudWatch\n  alarm by default.\n- **BGP on a public VIF without MD5 auth is a route-hijack vector.** The public\n  Internet routing ecosystem treats the advertised prefix as authoritative; a\n  missing `bgpAuthKey` on a public VIF lets any peer that compromises the\n  session inject more-specific routes that attract traffic.\n- **A Direct Connect Gateway is the unit of multi-region VIF failover.** A VIF\n  attached to a single Virtual Private Gateway is pinned to one VPC and one\n  region — failover requires a second VIF on a second, diverse connection.\n\n## Quick reference — severity thresholds\n\nApply the steps in order. The verdict is the **worst** finding, where\n`SINGLE_CONNECTION > NO_ENCRYPTION > CONFIG_GAP > OK`. The full condition →\nverdict → step matrix is in **Reference — Severity matrix** at the end of\nthis document.\n\n## Pre-flight: connection metadata gate\n\nSeveral attributes **short-circuit** the audit — misclassifying them produces\nfalse positives. The full per-attribute and per-field resolution tables are in\n**Reference — Metadata gate** and **Reference — Edge-case field handling** at\nthe end of this document. The short list every auditor must apply before\nstepping into Step 1:\n\n- `lagId` set → connection is a LAG **member**, not standalone; audit the LAG.\n- `bandwidth` `1Gbps`\u002F`2Gbps`\u002F`5Gbps`\u002F`50-500Mbps` → hosted connection,\n  MACSec not supported (hardware gate, not a posture gap).\n- `connectionMode: transit` → APN-partner-owned port; MACSec is the partner's\n  responsibility, flag `macSecCapable: false` as N\u002FA.\n- `hasLogicalRedundancy: yes` → LAG-level port redundancy **inside one\n  location**, NOT facility diversity.\n- `connectionState: down` → physical link down; treat as CONFIG_GAP if any\n  other path is available, SINGLE_CONNECTION if this is the only path.\n\nLive-account pagination note and canonical enumeration commands (unfiltered describe-connections \u002F describe-virtual-interfaces \u002F describe-lags; no NextToken, cross-account truncation at 1,000) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it before fetching live-account topology.\n\nMalformed-topology ERROR-verdict output block (invalid JSON, missing connectionId, missing virtualInterfaceId) moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\nLoad it when the input JSON fails the malformed gate in the Canonical checklist.\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious DX behaviours that change classification\n\nStep 0 expert knowledge — all nineteen non-obvious DX behaviours (same-POP pseudo-diversity, LAG as one unit, hosted-connection MACSec gate, should_encrypt silent downgrade, write-only bgpAuthKey, public-VIF MD5, private-ASN filtering, MTU 9001 public-VIF cap, VIF redundancy via diverse connections, DXGW multi-region lift, LOA-CFA time bounds, ConnectionState authority, 30-association DXGW limit, asynchronous DXGW route propagation, BGP graceful restart, cross-account assumed-role enumeration, port-based billing of down connections, MACSec CAK\u002FCKN overlap rotation, locationCode vs physical building) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it before classifying any non-trivial topology.\n\n### Step 1: Redundancy audit (SINGLE_CONNECTION — highest priority)\n\nFor each LAG (from `describe-lags`) and each standalone connection (not a LAG\nmember), enumerate the **diversity unit**:\n\n1. **Build the diversity set.** For each LAG, the diversity unit is the LAG\n   itself (location = LAG's `locationCode`, ignore member locations — they are\n   identical). For each standalone connection, the unit is the connection\n   itself with its own `locationCode`. Count diversity units, NOT individual\n   connections.\n\n2. **Check state.** Only count diversity units in `available` state (or LAGs\n   with `lagState: available`). Units in `requested`\u002F`pending`\u002F`down` are not\n   carrying production traffic; flag them as separate CONFIG_GAP findings but\n   exclude from the redundancy count.\n\n3. **Group by `locationCode`.** Two diversity units at the same location are\n   **not diverse** — they share facility risk.\n\n4. **Verdict:**\n   - **\u003C2 available diversity units at distinct locations** →\n     **SINGLE_CONNECTION** (HIGH). The topology has a single failure domain\n     for the entire hybrid network.\n   - **2+ available diversity units, but all share one location** →\n     **SINGLE_CONNECTION** (HIGH). Pseudo-diversity — same-facility risk.\n   - **2+ available diversity units at ≥2 distinct locations** → proceed to\n     Step 2.\n\n**Special case — single LAG at one location, single standalone at another:**\nthis IS diverse (2 distinct locations). A common design is \"primary LAG +\ndiverse standalone backup\" — exactly the AWS Resilient Hybrid Architecture\nreference pattern.\n\n### Step 2: MACSec encryption audit (NO_ENCRYPTION)\n\nFor each **diversity unit** that passed Step 1:\n\n1. **Gate on hardware eligibility.** Skip MACSec audit for:\n   - Hosted connections (`bandwidth: 1Gbps`, `2Gbps`, `5Gbps`, or sub-1Gbps).\n   - Any connection where `macSecCapable: false` AND `bandwidth` is a hosted\n     tier — capability is a hardware constraint.\n   - `connectionMode: transit` (partner-owned port; MACSec is the partner's\n     responsibility).\n\n2. **Check `macSecCapable`.** If `true`, MACSec is supported at this location\n   and bandwidth. If `false` on a dedicated 10\u002F100 Gbps connection, the\n   location is not MACSec-enabled — flag as CONFIG_GAP (consider IPsec overlay\n   or relocation to a MACSec-capable POP), not NO_ENCRYPTION.\n\n3. **Check `encryptionMode`** for each `macSecCapable: true` connection:\n   - `must_encrypt` → OK for this dimension.\n   - `should_encrypt` → **NO_ENCRYPTION** (HIGH). Silent-downgrade capable.\n     A misconfigured CE drops MACSec without operator action.\n   - `no_encrypt` → **NO_ENCRYPTION** (HIGH). MACSec disabled on capable\n     hardware.\n\n4. **Verdict:** any single connection triggering NO_ENCRYPTION makes the\n   topology NO_ENCRYPTION (the cleartext path is the weakest link).\n\n### Step 3: BGP \u002F LOA \u002F VIF audit (CONFIG_GAP)\n\nRun these only if Step 1 and Step 2 passed.\n\n#### Step 3a: BGP auth on public VIFs\n\nFor each VIF with `virtualInterfaceType: public`:\n- Check the authoritative BGP peer state (from `describe-bgp-peers`, or the\n  input's explicit `authKeyState` \u002F `authKey`-at-creation marker). **Do NOT\n  use the `bgpAuthKey: null` field from describe-virtual-interfaces — it is\n  write-only and always null** (Step 0). If auth was never configured\n  (`authKeyState: never-configured-at-creation`, or no auth key supplied in\n  the original create-VIF call) → **CONFIG_GAP** (MEDIUM). Public prefix\n  advertisement without BGP auth is a route-hijack vector.\n- Check `customerPeerAsn`: if it falls in the private ASN range\n  (64512-65534 or 4200000000-4294967294) on a public VIF, AWS will filter\n  the routes → **CONFIG_GAP** (MEDIUM). Routes are silently dropped.\n- Check `mtu`: if `9001` on a public VIF → **CONFIG_GAP** (LOW). AWS caps\n  at 1500; jumbo fragments.\n\nFor each VIF (any type) with `bgpPeers[].bgpStatus: down` on an\n`available` connection → **CONFIG_GAP** (MEDIUM). BGP session down on an\navailable link is a control-plane outage.\n\n#### Step 3b: VIF redundancy\n\nFor each private\u002Ftransit VIF:\n- If only one VIF exists in the topology, and it rides on a single\n  connection (even if the connection is a diverse-location pair), there is\n  no VIF-level failover → **CONFIG_GAP** (MEDIUM). One VIF on one\n  connection is a control-plane single point of failure.\n- If two VIFs exist but both ride the same connection, same failure domain\n  → **CONFIG_GAP** (MEDIUM).\n- If two VIFs ride diverse connections but neither is attached to a DXGW,\n  failover is regional-only (each VIF is pinned to one VGW) → CONFIG_GAP\n  (LOW). Multi-region failover requires a DXGW.\n\n#### Step 3c: LOA-CFA provisioning state\n\nFor each connection in `connectionState: requested`:\n- If held in `requested` for >5 business days without a retrievable LOA-CFA\n  (`describe-connection-loa --connection-id \u003Cid>` returns an error or empty\n  response), the partner cannot cross-connect → **CONFIG_GAP** (MEDIUM).\n  This is a provisioning blocker.\n\nFor each connection in `connectionState: pending` for >10 business days:\n- The cross-connect is in progress; >10 business days suggests a partner\n  delay → **CONFIG_GAP** (LOW).\n\n### Step 4: Aggregation — worst finding wins\n\n```text\nverdict = max(all_redundancy_findings,\n              all_encryption_findings,\n              all_config_gap_findings,\n              OK)\n```\n\nPriority: SINGLE_CONNECTION > NO_ENCRYPTION > CONFIG_GAP > OK.\n\n## Canonical checklist (run in this order)\n\nA single sequential list the auditor follows top-to-bottom for every topology.\nEach step either sets the verdict (worst-so-far wins) or moves on.\n\n1. **Fetch (no `--connection-id` filter):**\n   `describe-connections` → `describe-virtual-interfaces` → `describe-lags`.\n   If a public VIF is present, also `describe-bgp-peers --virtual-interface-id`\n   per VIF (the authoritative authKey source).\n2. **Malformed JSON gate:** invalid JSON, missing `connectionId`, or missing\n   `virtualInterfaceId` → emit `VERDICT: ERROR` and stop.\n3. **Metadata gate (per Reference — Metadata gate):** classify each connection\n   as LAG-member \u002F hosted \u002F dedicated, and each `connectionState`.\n4. **Step 1 — Redundancy:** group diversity units by `locationCode`.\n   Verdict moves to `SINGLE_CONNECTION` if \u003C2 units at distinct codes.\n5. **Step 2 — MACSec:** for each dedicated MACSec-capable unit, check\n   `encryptionMode`. Verdict moves to `NO_ENCRYPTION` on `no_encrypt` or\n   `should_encrypt`.\n6. **Step 3a — BGP auth (public VIFs):** never use the write-only\n   `bgpAuthKey`; use `authKeyState` from `describe-bgp-peers`. Missing auth\n   on a public VIF → verdict moves to `CONFIG_GAP`.\n7. **Step 3b — BGP session state:** any `bgpStatus: down` on an `available`\n   connection → `CONFIG_GAP`.\n8. **Step 3c — LOA:** `requested` >5 business days with no LOA-CFA, or\n   `pending` >10 business days → `CONFIG_GAP`.\n9. **Step 3d — VIF redundancy:** single VIF on a single connection, or two\n   VIFs without a DXGW attachment → `CONFIG_GAP`.\n10. **Step 4 — Aggregate:** worst-so-far wins. If nothing fired, emit `OK`.\n\n## Output format (per topology)\n\n```text\nCONNECTION: \u003Cprimary connection-id or LAG-id>\nVERDICT: SINGLE_CONNECTION | NO_ENCRYPTION | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step number>\nFINDINGS:\n  - [HIGH] \u003Cfinding description (Step N)>\n  - [MEDIUM] \u003Cfinding description (Step N)>\n  - [OK] \u003Cdimension that passed>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Failure handling — partial API failures and missing fields\n\nPartial API failure and missing-field fallback table (describe-bgp-peers throttling, empty peers array, absent offline fields, LOA errors, mid-stream truncation) moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\nLoad it when any describe-* call fails or a required field is absent.\n\n**Single-summary rule:** emit exactly ONE `CONNECTION \u002F VERDICT \u002F REASON \u002F\nFINDINGS \u002F REMEDIATION` block per topology. Do not split findings across\nmultiple blocks — aggregate into one `FINDINGS:` list, ordered\n`[HIGH] → [MEDIUM] → [LOW] → [OK]`.\n\n### Worked example — pseudo-diversity with BGP gap\n\n```text\nCONNECTION: dxcon-primary (LAG dxlag-prod)\nVERDICT: SINGLE_CONNECTION\nREASON: Both diversity units (LAG dxlag-prod at EqSE2, standalone dxcon-backup\nat EqSE2) share location EqSE2 — facility-level event takes both down (Step 1).\nBGP peer on VIF dxvif-public-prod is missing bgpAuthKey (Step 3a, would be\nCONFIG_GAP if redundancy were addressed).\nFINDINGS:\n  - [HIGH] Both connections terminate at location EqSE2 — pseudo-diversity, no\n    facility resilience (Step 1)\n  - [MEDIUM] Public VIF dxvif-public-prod has no BGP MD5 auth — route-hijack\n    vector (Step 3a)\n  - [OK] MACSec must_encrypt enabled on both capable connections\nREMEDIATION:\n  1. Provision a third connection at a different DX location (e.g., EqDC2 or\n     any location with a different facility code). Migrate the backup VIF\n     there.\n  2. Add BGP MD5: re-create the public VIF with --auth-key, or migrate to a\n     new VIF with auth. Existing VIFs cannot have auth added in-place.\n```\n\n### Worked example — malformed topology (ERROR)\n\nWorked example — malformed topology (ERROR) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md); the primary pseudo-diversity worked example stays inline.\nLoad it when exercising the ERROR path.\n\n## Anti-Patterns — NEVER\n\n- NEVER treat \"two connections\" as redundant without comparing `locationCode`.\n  Two connections at `EqSE2` are one fibre-cut away from simultaneous failure.\n  The diversity check is **location-based**, not count-based.\n\n- NEVER count LAG members as independent diversity units. A LAG is one logical\n  connection at one location; member links share the AWS patch panel and\n  facility. Count the LAG, not the members.\n\n- NEVER flag `macSecCapable: false` on a **hosted connection** (1Gbps \u002F 2Gbps\n  \u002F 5Gbps \u002F sub-1Gbps partner offerings) as NO_ENCRYPTION. MACSec is a\n  hardware-feature gate — hosted connections physically cannot run 802.1AE.\n  The remediation is IPsec, not \"enable MACSec.\"\n\n- NEVER flag `bgpAuthKey: null` from `describe-virtual-interfaces` as missing\n  auth. The field is write-only — AWS returns null for every existing VIF\n  regardless of configuration. Use `describe-bgp-peers --virtual-interface-id\n  \u003Cid>` for the authoritative peer state, or infer from the input's\n  `bgpPeers[].authKey` if supplied.\n\n- NEVER treat `encryptionMode: should_encrypt` as equivalent to\n  `must_encrypt`. `should_encrypt` permits silent downgrade to plaintext when\n  the peer fails to negotiate MACSec — it is operationally cleartext-capable.\n  Classify as NO_ENCRYPTION.\n\n- NEVER assume `hasLogicalRedundancy: yes` means facility diversity. It\n  indicates LAG-level port redundancy **within one location**. The flag is\n  AWS-populated, not a guarantee of POP-level resilience.\n\n- NEVER conclude a connection is `available` from CloudWatch metrics alone.\n  `ConnectionState` is the authoritative state; throughput metrics can lag\n  or persist briefly after a flap. Always cross-reference the\n  `connectionState` field from `describe-connections`.\n\n- NEVER recommend deleting a hosted connection to \"enable MACSec.\" Hosted\n  connections are partner-billed and have contract terms; the MACSec gap is\n  remediated via IPsec overlay (transit-gateway IPsec, site-to-site VPN) or\n  by procuring a dedicated port — not by deleting the hosted connection.\n\n- NEVER recommend BGP MD5 remediation as \"add the key to the existing VIF.\"\n  BGP auth cannot be modified in-place; the VIF must be re-created (or a new\n  VIF provisioned and the old one decommissioned after traffic cutover).\n  Always include the cutover step in the remediation.\n\n- NEVER flag a public VIF with a private ASN (64512-65534) as a security\n  issue — it is a **routing-acceptance** issue. AWS silently filters the\n  routes; the prefix is not advertised. The remediation is to obtain a\n  public ASN from a RIR or use the AWS-provided ASN if eligible.\n\n- NEVER overlook a public VIF without BGP auth. Public prefix advertisement\n  without MD5 is a route-hijack vector — a more-specific prefix from a\n  spoofed peer attracts traffic from the global Internet. This is\n  CONFIG_GAP at minimum; CRITICAL-tier concern for any prefix in the global\n  routing table.\n\n- NEVER assume a DXGW propagates VIF failover automatically without\n  route-table configuration. The DXGW has its own route table; VIF failover\n  depends on AS-path prepending or local-pref tuning on the CE side.\n  Flag missing route-pref config as CONFIG_GAP (LOW).\n\n- NEVER assume a DXGW association is active immediately after creation.\n  `create-direct-connect-gateway-association` is asynchronous; the route\n  table on the VGW\u002FTGW side does not update until the association reaches\n  `associated` state. Emit `describe-direct-connect-gateway-attachments`\n  and verify state before declaring failover ready. A VIF riding on a\n  `pending` association has no route propagation — traffic black-holes.\n\n- NEVER leave an old VIF active after re-creating it for BGP auth or MACSec\n  remediation. Two VIFs advertising the same prefix from the same connection\n  cause route oscillation and unpredictable path selection. After the new\n  VIF is verified up and routes are migrated, the old VIF MUST be deleted\n  (`delete-virtual-interface`) — or at minimum its BGP session shut — before\n  declaring the remediation complete. Forgetting this step is the #1 cause\n  of post-remediation asymmetric routing.\n\n- NEVER treat `directconnect describe-virtual-interfaces` (no filter) and\n  `describe-virtual-interfaces --connection-id \u003Cid>` as equivalent. The\n  filtered call misses VIFs whose underlying connection was swapped during\n  a maintenance event or a VIF migration — the VIF retains its original\n  `virtualInterfaceId` but its `connectionId` now points at the new\n  connection. The filtered listing silently returns nothing for that VIF,\n  producing a false \"no VIFs here\" verdict. The unfiltered call is the\n  only complete listing. Always use the unfiltered form for audit, then\n  correlate by `connectionId` in post-processing.\n\n- NEVER flag a connection in `requested` for fewer than 5 business days as a\n  LOA blocker. AWS SLA for LOA issuance is 72 hours; partner-side cross-\n  connect adds 2 business days. Allow 5 business days before raising.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nPre-flight safety checks (CONFIRM gate, VIF re-creation backup, MACSec both-ends readiness, weeks-long provisioning lead time, DXGW global-vs-regional scope, non-disruptive BGP re-key via VIF migration) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad them before emitting or executing any remediation CLI.\n\n## Remediation guidance\n\nFull per-verdict remediation playbooks with CLI (SINGLE_CONNECTION diverse-location provisioning, NO_ENCRYPTION MACSec\u002FIPsec, CONFIG_GAP BGP auth via VIF re-creation \u002F LOA re-request \u002F DXGW failover, OK monitoring recommendations) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad the matching playbook once the verdict is decided.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (2024-2026) — MACsec GA expansion, enhanced CloudWatch DX metrics, DX Gateway enhancements — moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when re-checking previously non-MACsec-capable connections.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert-knowledge deep dive, per-verdict remediation playbooks, metadata-gate and edge-case field tables, Recent AWS features (2024-2026) moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — canonical enumeration\u002Fpagination commands and pre-flight safety checks moved from SKILL.md\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — malformed-topology ERROR block and partial API failure fallback table moved from SKILL.md\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — malformed-topology (ERROR) worked example moved from SKILL.md; the primary pseudo-diversity example stays in SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F Hybrid Networking Resilience & Compliance.\n\n## Reference — Severity matrix\n\nFull condition → verdict → step mapping. Apply in order; the verdict is the\n**worst** finding, where `SINGLE_CONNECTION > NO_ENCRYPTION > CONFIG_GAP > OK`.\n\n| Condition | Verdict | Step |\n|---|---|---|\n| \u003C2 connections at **diverse** DX locations (`locationCode`) | **SINGLE_CONNECTION** | 1 |\n| LAG with all member connections at the same `locationCode` | **SINGLE_CONNECTION** | 1 |\n| 2 connections at the same `locationCode` (pseudo-diversity) | **SINGLE_CONNECTION** | 1 |\n| Dedicated connection, `macSecCapable: true`, `encryptionMode: no_encrypt` | **NO_ENCRYPTION** | 2 |\n| Dedicated connection, `macSecCapable: true`, `encryptionMode: should_encrypt` | **NO_ENCRYPTION** | 2 (silent-downgrade risk) |\n| Public VIF with no `bgpAuthKey` set (use `authKeyState`, not the write-only field) | **CONFIG_GAP** | 3a |\n| BGP peer `bgpStatus: down` on an `available` connection | **CONFIG_GAP** | 3b |\n| Connection `state: requested` >5 business days with no LOA-CFA | **CONFIG_GAP** | 3c |\n| Single private VIF on a single connection (no DXGW failover) | **CONFIG_GAP** | 3d |\n| 2+ diverse connections, MACSec `must_encrypt` (or N\u002FA hosted), BGP auth on all public VIFs, valid LOA or `available` | **OK** | 4 |\n\n## Reference — Metadata gate\n\nFull per-attribute metadata-gate table (lagId, connectionMode, bandwidth tiers, location, hasLogicalRedundancy, connectionState transitions) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md); the short list above stays inline.\nLoad it when a pre-flight attribute is set and ambiguous.\n\n## Reference — Edge-case field handling\n\nEdge-case field-handling table (authKeyState variants, missing or empty bgpPeers array, absent authKeyState in offline JSON) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when Step 3 fields are absent, redacted, or truncated.\n\n## AWS documentation\n\n- **AWS Direct Connect User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdirectconnect\u002Flatest\u002FUserGuide\u002FWelcome.html\n- **Direct Connect Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdirectconnect\u002Flatest\u002FUserGuide\u002Fsecurity.html\n- **Direct Connect API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdirectconnect\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI Command Reference (directconnect)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fdirectconnect\u002F\n- **MACsec for Direct Connect** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdirectconnect\u002Flatest\u002FUserGuide\u002Fdirect-connect-macsec.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":39},{"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,"invocation_schema":37,"supports_pipeline":35,"activation_triggers":38},"directconnect, networking, macsec, bgp, redundancy, encryption, loa, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","Networking","0.1.0","Direct Connect, DX, MACSec, BGP, virtual interface, private VIF, public VIF, transit VIF, LOA-CFA, redundancy, diverse location, Link Aggregation Group, LAG, Direct Connect Gateway, DXGW, route hijack, BGP MD5, hybrid networking, link encryption, 802.1AE, transit gateway, hybrid DC","high","false","Reviewing Direct Connect topology before production cutover, checking for single-path or single-facility failure risk, validating MACSec enforcement on capable hardware, auditing BGP peer auth on public VIFs (route-hijack defence), confirming LOA-CFA issuance for connections stuck in requested, or hardening hybrid-network resilience across regions.","true","SINGLE_CONNECTION | NO_ENCRYPTION | CONFIG_GAP | OK","Input: either (a) describe-connections + describe-virtual-interfaces JSON (optionally paired with describe-lags and describe-connection-loa output), OR (b) a connection-id or LAG-id for live-account audit. Output: deterministic CONNECTION\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per topology, where VERDICT ∈ {SINGLE_CONNECTION, NO_ENCRYPTION, CONFIG_GAP, OK, ERROR}.","audit this Direct Connect connection, is my DX redundant, MACSec check Direct Connect, BGP auth public VIF, LOA stuck pending, diverse location Direct Connect, single path failure risk DX, route hijack public VIF, LAG redundancy audit, Direct Connect Gateway failover","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline topology classification from describe-connections \u002F describe-virtual-interfaces JSON output. Live-account audits use aws directconnect describe-connections, describe-virtual-interfaces, describe-lags, describe-connection-loa, and describe-bgp-peers (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fdirectconnect-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":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill directconnect-auditor",{"tool":54,"command":55},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill directconnect-auditor",{"tool":57,"command":58},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill directconnect-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002FSKILL.md",true,[62,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",14091,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Feval\u002Ftest-cases.yaml",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Fbaselines\u002Fall-clean-macsec-must-encrypt.md",700,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fbaselines\u002Fall-clean-macsec-must-encrypt.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fbgp-public-vif-no-auth.md",796,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fbaselines\u002Fbgp-public-vif-no-auth.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Floa-stale-requested.md",781,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fbaselines\u002Floa-stale-requested.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fmacsec-disabled-dedicated.md",697,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fbaselines\u002Fmacsec-disabled-dedicated.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fsame-location-pseudo-diversity.md",748,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fbaselines\u002Fsame-location-pseudo-diversity.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fsingle-connection-no-redundancy.md",744,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fbaselines\u002Fsingle-connection-no-redundancy.md",{"path":93,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",2095,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",5313,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fevals.json",{"path":101,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fall-clean-macsec-must-encrypt.md",1896,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fprompts\u002Fall-clean-macsec-must-encrypt.md",{"path":105,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fbgp-public-vif-no-auth.md",2200,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fprompts\u002Fbgp-public-vif-no-auth.md",{"path":109,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Floa-stale-requested.md",2097,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fprompts\u002Floa-stale-requested.md",{"path":113,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fmacsec-disabled-dedicated.md",1668,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fprompts\u002Fmacsec-disabled-dedicated.md",{"path":117,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fsame-location-pseudo-diversity.md",1697,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fprompts\u002Fsame-location-pseudo-diversity.md",{"path":121,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":122,"sourceHtmlUrl":123},"evals\u002Fprompts\u002Fsingle-connection-no-redundancy.md",1097,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fevals\u002Fprompts\u002Fsingle-connection-no-redundancy.md",{"path":125,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":126,"sourceHtmlUrl":127},"examples\u002Fend-to-end.md",6749,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fexamples\u002Fend-to-end.md",{"path":129,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fadvanced-patterns.md",19354,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":133,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Fdiagnostic-commands.md",2919,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Freferences\u002Fdiagnostic-commands.md",{"path":137,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Ferror-handling.md",2479,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Freferences\u002Ferror-handling.md",{"path":141,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":142,"sourceHtmlUrl":143},"references\u002Fworked-examples.md",669,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Freferences\u002Fworked-examples.md",{"path":145,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":146,"sourceHtmlUrl":147},"skill.usf.yaml",4271,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdirectconnect-auditor\u002Fskill.usf.yaml",[149,156,163,170,177,184],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"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":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"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":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"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":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"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":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"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":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"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",[],[]]