[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AAJ1NVTYCN0VFYHF3MX7CS":3,"skill-same:01M7AAJ1NVTYCN0VFYHF3MX7CS":145},{"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":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7AAJ1NVTYCN0VFYHF3MX7CS","opensearch-migration-operator",null,"Operates Elasticsearch to OpenSearch migration workflows safely — version compatibility assessment (ES 5.x\u002F6.x\u002F7.x to OpenSearch 1.x\u002F2.x), index migration via snapshot\u002Frestore to S3 repository and reindex-from-remote, plugin compatibility (remove ES-only plugins before migration), client compatibility (OpenSearch client vs ES client, compatibility mode), _search API compatibility mode, cluster migration path (in-place upgrade vs new cluster + reindex), snapshot repository setup (S3 repository plugin), downtime planning (blue\u002Fgreen strategy), and OpenSearch 2.x features (neural search, vector DB, flow frameworks). Runs deterministic pre-checks (version compatibility, plugin inventory, snapshot repository health, index mapping compatibility), executes behind a CONFIRM gate, and emits READY, BLOCKED, or COMPLETED per operation with the exact CLI and API sequence. Use for ES-to-OpenSearch migration planning, snapshot repository setup, index reindex, or post-migration verification.","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\u002Fopensearch-migration-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: opensearch-migration-operator\ndescription: Operates Elasticsearch to OpenSearch migration workflows safely — version compatibility assessment (ES 5.x\u002F6.x\u002F7.x to OpenSearch 1.x\u002F2.x), index migration via snapshot\u002Frestore to S3 repository and reindex-from-remote, plugin compatibility (remove ES-only plugins before migration), client compatibility (OpenSearch client vs ES client, compatibility mode), _search API compatibility mode, cluster migration path (in-place upgrade vs new cluster + reindex), snapshot repository setup (S3 repository plugin), downtime planning (blue\u002Fgreen strategy), and OpenSearch 2.x features (neural search, vector DB, flow frameworks). Runs deterministic pre-checks (version compatibility, plugin inventory, snapshot repository health, index mapping compatibility), executes behind a CONFIRM gate, and emits READY, BLOCKED, or COMPLETED per operation with the exact CLI and API sequence. Use for ES-to-OpenSearch migration planning, snapshot repository setup, index reindex, or post-migration verification.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws opensearch describe-domain, aws opensearch describe-domain-config, aws opensearch update-domain-config, aws es describe-elasticsearch-domain (for legacy ES domains), aws es update-elasticsearch-domain-config, aws s3 ls\u002Fhead for snapshot repository buckets, and curl against the OpenSearch\u002FElasticsearch _cluster\u002F health...\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '4'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Analytics\n  task_type: operate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY | BLOCKED | COMPLETED\n  when_to_use: Planning or executing an Elasticsearch to OpenSearch migration, assessing version compatibility, setting up S3 snapshot repositories, migrating indices via snapshot\u002Frestore or reindex-from-remote, removing ES-only plugins, evaluating in-place upgrade vs new cluster, planning blue\u002Fgreen downtime strategy, configuring OpenSearch client compatibility mode, or verifying post-migration cluster health.\n  when_not_to_use: OpenSearch security audits or IAM policy reviews (use opensearch-domain- auditor), OpenSearch performance tuning beyond migration scope (use query and shard analysis directly), building new OpenSearch clusters from scratch (use opensearch-domain-deployer), or OpenSearch index mapping design (application-level work). This skill focuses on the migration operation — not security posture or greenfield deployment.\n  activation_triggers: migrate Elasticsearch to OpenSearch, ES to OpenSearch migration, OpenSearch version compatibility, OpenSearch snapshot repository S3, reindex from remote OpenSearch, OpenSearch plugin compatibility, OpenSearch client compatibility mode, in-place upgrade OpenSearch, blue\u002Fgreen migration OpenSearch, OpenSearch 2.x migration, OpenSearch neural search, OpenSearch vector DB, OpenSearch flow frameworks, post-migration verification OpenSearch, Elasticsearch deprecation migration\n  invocation_schema: 'Input: either (a) an Elasticsearch\u002FOpenSearch domain configuration with the intended migration operation (assess, snapshot-setup, in-place-upgrade, new-cluster-reindex, blue-green, verify), OR (b) a domain endpoint + API health output for live-account execution. Output: a deterministic OPERATION\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block per operation, where VERDICT is one of READY, BLOCKED, COMPLETED.'\n  invocation_example: \"# Minimal valid input (offline plan classification):\\nDomain: prod-search-cluster\\nRegion: us-east-1\\nCurrent: Elasticsearch 7.10 (AWS managed)\\nTarget: OpenSearch 2.x (AWS managed)\\nOperation: assess-migration-readiness\\n\\nCluster configuration:\\n  - ES version: 7.10\\n  - Node count: 6 (3 master, 3 data)\\n  - Instance type: r6g.large.search\\n  - Plugins: analysis-icu, analysis-phonetic, ingest-attachment\\n  - Indices: 45 (12 TB total)\\n  - Snapshot repository: not configured\\n  - Custom plugins: none\\n\\nEmit the standard VERDICT block.\"\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: OpenSearch, Elasticsearch, migration, version compatibility, snapshot, reindex, S3 repository, plugin compatibility, client compatibility, compatibility mode, blue\u002Fgreen, in-place upgrade, neural search, vector DB, flow frameworks\n  tags: opensearch, elasticsearch, analytics, migration, snapshot, reindex, blue-green\n---\n\n# OpenSearch Migration Operator\n\n## What this skill does\n\nExecutes Elasticsearch to OpenSearch migration operations correctly and\nsafely. Runs deterministic pre-checks before any state-changing operation,\nexecutes the migration behind a CONFIRM gate, and verifies the result.\nEvery migration involves version compatibility assessment, plugin\ninventory, snapshot repository setup, index migration strategy selection,\nand client compatibility verification. A wrong migration path causes\ndata loss, broken queries, or client connection failures.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **Quick reference** | Verdict thresholds + pre-check priority order | Before any operation |\n| **STRICT output contract** | Mandatory output block format | Before emitting any response |\n| **Mindset** | Version compatibility model, snapshot vs reindex, client compatibility | Understanding the migration model |\n| **Pre-flight** | Domain metadata gate — version, plugins, snapshot, indices | Before executing any CLI |\n| **Process** | Per-operation planning: assess, snapshot, in-place, new-cluster, blue\u002Fgreen, verify | When choosing which operation to run |\n| **Expert heuristic** | Non-obvious ES-to-OpenSearch migration behaviours | Review before complex decisions |\n| **NEVER** | Anti-patterns that cause data loss, broken clients, or failed migrations | Review before risky operations |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `BLOCKED` | One or more pre-checks failed (incompatible version, ES-only plugin, no snapshot repository, broken index mappings) | List failures, do NOT execute |\n| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI\u002FAPI sequence, wait for operator yes |\n| `COMPLETED` | Migration finished and post-verification passed | Emit new cluster info, verification results, client notes |\n\n**Priority order for pre-checks (apply in this sequence, all must pass for\nREADY):**\n\n1. **Version compatibility** — source ES version must be supported for\n   the target OpenSearch version. ES 7.x -> OpenSearch 1.x\u002F2.x is\n   supported. ES 5.x\u002F6.x requires intermediate upgrade.\n2. **Plugin inventory** — all installed plugins must have OpenSearch\n   equivalents. ES-only plugins (e.g., commercial X-Pack plugins) must\n   be removed or replaced before migration.\n3. **Snapshot repository health** — S3 snapshot repository must be\n   registered and writable. Required for snapshot\u002Frestore migration.\n4. **Index mapping compatibility** — index mappings and settings must be\n   compatible with the target OpenSearch version.\n5. **Client compatibility** — application clients must support OpenSearch\n   or use compatibility mode (`compatible=40`).\n\n**Migration timing baselines (2026):**\n\n- Version compatibility assessment: immediate (API check).\n- Snapshot repository setup: 5-15 minutes.\n- Full snapshot to S3: 10-120 minutes per TB (depends on network and S3\n  write throughput).\n- In-place upgrade (ES 7.10 -> OpenSearch 1.x): 30-120 minutes (blue\u002Fgreen\n  deployment, AWS-managed).\n- Reindex from remote: 1-10 hours per TB (depends on network bandwidth,\n  index size, and mapping complexity).\n- Blue\u002Fgreen new cluster migration: 2-8 hours total (provision new cluster\n  + reindex + cutover).\n\n## STRICT output contract\n\nEvery migration response MUST emit this block per target domain. No prose\nbefore or after the block; the block is the entire actionable output.\n\n```text\nOPERATION: \u003Cassess | snapshot-setup | in-place-upgrade | new-cluster-reindex | blue-green | verify>\nVERDICT: READY | BLOCKED | COMPLETED\nTARGET: \u003Cdomain-name, source-version, target-version>\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. \u003CCLI or API command with parameters populated>\n  2. \u003Cwait command>\n  3. \u003Cnext step>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nENDPOINT: \u003COpenSearch endpoint behavior>\nCLIENT_NOTES: \u003Ccompatibility mode, client library, connection string updates>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Coperation> on \u003Cdomain> in \u003Cregion>.\n  Proceed? (yes\u002Fno)\"\n```\n\nDo NOT omit any field. If a field is not applicable, write `N\u002FA` with a\none-line reason.\n\n## Mindset\n\n**One-line takeaway:** ES-to-OpenSearch migration is not a version bump —\nit is a fork migration. OpenSearch 1.x derives from ES 7.10.2 (the last\nApache 2.0 licensed version). OpenSearch 2.x diverges further. The\nmigration path depends on the source version, installed plugins, and\nclient library.\n\nDriven by four migration realities:\n\n- **Version compatibility determines the path.** ES 7.x can upgrade\n  in-place to OpenSearch 1.x (same codebase lineage). ES 5.x\u002F6.x must\n  upgrade to 7.x first, then to OpenSearch. Skipping versions requires\n  a new cluster + reindex migration. AWS-managed ES domains support\n  in-place upgrade to OpenSearch for eligible versions only.\n\n- **Snapshot\u002Frestore is the safest migration method.** Register an S3\n  repository on both source and target, take a snapshot on the source,\n  and restore on the target. This preserves index mappings, settings,\n  and data without reindexing. Reindex-from-remote is the fallback when\n  snapshot\u002Frestore is not possible (e.g., cross-version with breaking\n  mapping changes).\n\n- **Plugins are the #1 migration blocker.** ES-only plugins (commercial\n  X-Pack features: security, ML, SQL, alerting) do not exist in\n  OpenSearch. OpenSearch has its own equivalents (security plugin,\n  anomaly detection, SQL plugin, alerting plugin), but their APIs and\n  configurations differ. Inventory plugins before planning the migration.\n\n- **Client compatibility mode bridges the gap.** OpenSearch servers can\n  respond with `compatible=40` header to mimic ES 7.x responses. This\n  allows existing ES client libraries (elasticsearch-py, elasticsearch-js,\n  Spring Data Elasticsearch) to work without code changes. But it is a\n  bridge, not a permanent solution — migrate to the OpenSearch client\n  library for long-term compatibility.\n\n## Pre-flight: domain metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n> Moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n> Read it only when this section applies.\n\n**Malformed input:** if the input is invalid or missing required fields,\nemit `VERDICT: BLOCKED` with `REASON: Domain\u002Foperation configuration is\nnot valid or is missing required fields — cannot plan.`\n\n| Domain attribute | Effect on migration |\n|---|---|\n| `EngineVersion: Elasticsearch_7.10` | Can upgrade in-place to OpenSearch 1.x or 2.x. |\n| `EngineVersion: Elasticsearch_6.x or 5.x` | Must upgrade to 7.x first or use new-cluster + reindex. |\n| `EngineVersion: OpenSearch_2.x` | Already on OpenSearch — verify post-migration. |\n| ES-only plugins installed | Must remove or replace before migration. |\n| No snapshot repository configured | BLOCKED for snapshot\u002Frestore migration — set up S3 repository first. |\n| Cluster status `red` | BLOCKED — fix cluster health before migration. |\n| Cluster status `yellow` | Warn — replica shards unavailable; migration proceeds but verify. |\n| Dedicated masters enabled | AWS manages blue\u002Fgreen deployment; in-place upgrade is smoother. |\n| EncryptionAtRest enabled | KMS key follows the domain; no migration impact. |\n| VPC-only domain | Endpoint is internal; client access requires VPC connectivity. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert heuristic — non-obvious ES-to-OpenSearch migration behaviours\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n> Read it only when this section applies.\n\n\n### Step 1: Pre-check gate — BLOCKED if any check fails\n\nRun ALL of the following pre-checks. If ANY fails, the verdict is BLOCKED\nwith the failed checks enumerated in PRE_CHECKS. Do NOT execute.\n\n**For ALL migration operations:**\n1. Domain status is `Active` (not `Processing`, `Upgrading`).\n2. Cluster health is `green` or `yellow` (not `red`).\n3. No active index creation, shard relocation, or recovery in progress.\n4. IAM role for the operator holds `es:ESHttp*` and\n   `opensearch:ESHttp*` permissions.\n\n**For version compatibility assessment:**\n5. Source ES version is identified (5.x, 6.x, 7.x, or OpenSearch 1.x).\n6. Target OpenSearch version is identified (1.x or 2.x).\n7. Version compatibility matrix is checked (see § Version compatibility\n   matrix below).\n\n**For snapshot\u002Frestore migration:**\n5. S3 bucket exists and is accessible.\n6. IAM role has `s3:ListBucket`, `s3:GetObject`, `s3:PutObject` on the\n   bucket.\n7. Snapshot repository plugin is installed (repository-s3 for\n   self-managed; automatic for AWS-managed).\n8. Repository is registered on both source and target clusters.\n9. Test snapshot write\u002Fread succeeds.\n\n**For in-place upgrade:**\n5. Source version is ES 7.10 (the only version eligible for direct\n   in-place upgrade to OpenSearch on AWS).\n6. No ES-only commercial plugins installed.\n7. Domain has dedicated masters enabled (recommended for blue\u002Fgreen\n   deployment).\n8. EBS volume size has headroom for reindexing during upgrade.\n\n**For new-cluster + reindex migration:**\n5. Target OpenSearch domain is provisioned and accessible.\n6. Network connectivity exists between source and target (especially for\n   VPC-only domains).\n7. Target indices created with correct mappings and settings.\n8. Reindex-from-remote is enabled on the target cluster\n   (`\"reindex.remote.whitelist\": \"\u003Csource-endpoint>:443\"`).\n\n**For client compatibility verification:**\n5. Application client library version is identified.\n6. Compatibility mode (`compatible=40`) tested against target cluster.\n7. All application API calls tested against OpenSearch endpoints.\n\n### Step 2: Version compatibility matrix\n\n| Source version | Target version | Migration path | Risk |\n|---|---|---|---|\n| ES 5.x | OpenSearch 1.x | Upgrade to ES 6.x -> 7.x -> OS 1.x (multiple steps) | HIGH |\n| ES 5.x | OpenSearch 2.x | New cluster + reindex (no direct path) | HIGH |\n| ES 6.x | OpenSearch 1.x | Upgrade to ES 7.x -> OS 1.x | MEDIUM |\n| ES 6.x | OpenSearch 2.x | New cluster + reindex | MEDIUM |\n| ES 7.x | OpenSearch 1.x | In-place upgrade (direct fork lineage) | LOW |\n| ES 7.x | OpenSearch 2.x | In-place to OS 1.x -> upgrade to OS 2.x | LOW-MEDIUM |\n| OpenSearch 1.x | OpenSearch 2.x | In-place upgrade | LOW |\n| OpenSearch 2.x | OpenSearch 2.x (newer) | In-place upgrade | LOW |\n\n### Step 3: Plugin compatibility assessment\n\n| ES plugin | OpenSearch equivalent | Action |\n|---|---|---|\n| analysis-icu, phonetic, kuromoji, smartcn | Built-in | No action — pre-installed on OpenSearch |\n| ingest-attachment | Built-in | No action — pre-installed |\n| mapper-murmur3, annotated-text | Built-in | No action — pre-installed |\n| x-pack-security | OpenSearch security plugin | Migrate security config (config.yml, roles.yml) |\n| x-pack-ml | OpenSearch anomaly detection | Reconfigure ML jobs |\n| x-pack-sql | OpenSearch SQL plugin | Update API paths (`_plugins\u002F_sql`) |\n| x-pack-alerting | OpenSearch alerting plugin | Reconfigure monitors and destinations |\n| x-pack-monitoring | OpenSearch performance analyzer | Reconfigure monitoring |\n\n### Step 4: Snapshot repository setup (S3)\n\nIf the migration uses snapshot\u002Frestore, the S3 repository must be set up\non both source and target.\n\n**For AWS-managed domains:** the S3 repository is configured via the\ndomain's snapshot configuration. AWS automatically manages the\nrepository-s3 plugin.\n\n```json\nPUT _snapshot\u002Fs3-migration-repo\n{\n  \"type\": \"s3\",\n  \"settings\": {\n    \"bucket\": \"migration-snapshots-bucket\",\n    \"region\": \"us-east-1\",\n    \"base_path\": \"opensearch-migration\",\n    \"role_arn\": \"arn:aws:iam::111111111111:role\u002FOpenSearchSnapshotRole\"\n  }\n}\n```\n\n**Verify the repository:**\n```\nPOST _snapshot\u002Fs3-migration-repo\u002F_verify\n```\n\nReturns the list of nodes that can write to the repository. All data\nnodes must report `success`.\n\n### Step 5: Snapshot and restore migration\n\nOn the source cluster, create a snapshot:\n```\nPUT _snapshot\u002Fs3-migration-repo\u002Fsnapshot_1?wait_for_completion=true\n{\"indices\":\"index1,index2,index3\",\"ignore_unavailable\":true,\"include_global_state\":false}\n```\n\nOn the target cluster, register the same repository, then restore:\n```\nPOST _snapshot\u002Fs3-migration-repo\u002Fsnapshot_1\u002F_restore?wait_for_completion=false\n{\"indices\":\"index1,index2,index3\",\"ignore_unavailable\":true,\"include_global_state\":false,\"rename_pattern\":\"(.+)\",\"rename_replacement\":\"$1\"}\n```\n\nMonitor restore progress: `GET _cat\u002Frecovery?v` and\n`GET _cluster\u002Fhealth?wait_for_status=green&timeout=60s`.\n\n### Step 6: Reindex-from-remote migration\n\nWhen snapshot\u002Frestore is not possible (cross-major-version, incompatible\nmappings), use reindex-from-remote.\n\nOn the target cluster, reindex from the remote source:\n```\nPOST _reindex?wait_for_completion=false\n{\"source\":{\"remote\":{\"host\":\"https:\u002F\u002Fsearch-source-es-cluster.us-east-1.es.amazonaws.com:443\"},\"index\":\"source-index\",\"size\":5000},\"dest\":{\"index\":\"target-index\"}}\n```\n\n**IMPORTANT:** The target index must be created with the correct mappings\nand settings BEFORE reindexing. Reindex does NOT copy mappings or\nsettings from the source.\n\n**For AWS-managed VPC domains:** the target domain's security group must\nallow inbound HTTPS from the source domain's VPC, or use VPC peering \u002F\nTransit Gateway for cross-VPC connectivity.\n\n### Step 7: In-place upgrade (ES 7.10 to OpenSearch)\n\nFor AWS-managed domains, the in-place upgrade is triggered via:\n\n```bash\naws opensearch update-domain-config \\\n  --domain-name prod-search-cluster \\\n  --engine-version OpenSearch_2.11 \\\n  --region us-east-1\n```\n\nAWS performs a blue\u002Fgreen deployment:\n1. Provisions new nodes with OpenSearch.\n2. Migrates data from old nodes to new nodes.\n3. Routes traffic to the new nodes.\n4. Decommissions the old nodes.\n\nThe domain endpoint does NOT change. Monitor the upgrade status:\n\n```bash\naws opensearch describe-domain \\\n  --domain-name prod-search-cluster \\\n  --query 'DomainStatus.{Status:Processing, UpgradeProcessing:UpgradeProcessing, EngineVersion:EngineVersion}' \\\n  --output json\n```\n\n### Step 8: Blue\u002Fgreen new cluster migration\n\nFor complex migrations (multiple version jumps, plugin incompatibilities),\nprovision a new OpenSearch domain and migrate indices.\n\n**Strategy:**\n1. Provision new OpenSearch domain.\n2. Register S3 snapshot repository on both clusters.\n3. Snapshot all indices from the source.\n4. Restore on the target.\n5. Verify data completeness (document counts, mapping fidelity).\n6. Update application connection strings to the new endpoint.\n7. Decommission the source cluster after a verification window.\n\n**Downtime:** Near-zero if the source cluster remains read-write during\nthe migration. Applications write to the source; reindex or snapshot-\nrestore copies data; final cutover requires a brief write freeze for\ndelta sync.\n\n### Step 9: Client compatibility verification\n\nAfter migration, verify that application clients work correctly against\nthe OpenSearch endpoint.\n\n| Client library | Compatibility | Action |\n|---|---|---|\n| elasticsearch-py\u002Fjs\u002Fgo 7.x | Works with `compatible=40` | Long-term: migrate to opensearch-* equivalent |\n| Spring Data Elasticsearch | Works with `compatible=40` | Long-term: migrate to Spring Data OpenSearch |\n| opensearch-py \u002F @opensearch-project\u002Fopensearch | Native OpenSearch | No action needed |\n\n**Testing procedure:** Point the application at the OpenSearch endpoint\nwith `?compatible=40`. Run the integration test suite. Verify search\nresults match the ES baseline. Test index, update, and delete operations.\nAggregation queries are the most likely to differ — test them first.\n\n### Step 10: Post-verification — COMPLETED\n\nAfter the migration finishes, run post-verification. ALL checks must pass\nfor `COMPLETED`.\n\n1. Cluster health is `green` on the target OpenSearch domain.\n2. Document counts match between source and target indices.\n3. Index mappings are preserved or correctly migrated.\n4. All application search queries return correct results.\n5. Client compatibility mode (`compatible=40`) works for existing ES\n   clients.\n6. Snapshot repository is registered and functional on the target.\n7. No red shards or unassigned replicas.\n8. Monitoring and alerting are configured on the target domain.\n\nIf ANY verification fails, emit `VERDICT: ERROR` with failure details —\ndo not claim COMPLETED.\n\n## Output format\n\nSee § STRICT output contract for the mandatory block. Worked examples\nbelow.\n\n### Worked example — migration readiness assessment (READY)\n\n```text\nOPERATION: assess\nVERDICT: READY\nTARGET: prod-search-cluster (ES 7.10 -> OpenSearch 2.11)\nPRE_CHECKS:\n  - [PASS] Domain status is Active\n  - [PASS] Cluster health is green (45 indices, 12 TB)\n  - [PASS] Source version Elasticsearch_7.10 is eligible for in-place upgrade\n  - [PASS] All installed plugins (analysis-icu, analysis-phonetic, ingest-attachment) have OpenSearch equivalents\n  - [PASS] No ES-only commercial plugins detected\n  - [PASS] No active shard relocation or recovery in progress\nSTEPS:\n  1. Set up S3 snapshot repository (if not already configured):\n     PUT _snapshot\u002Fs3-migration-repo {\"type\":\"s3\",\"settings\":{\"bucket\":\"migration-snapshots\",\"region\":\"us-east-1\",\"base_path\":\"opensearch-migration\"}}\n  2. Take a pre-upgrade full snapshot:\n     PUT _snapshot\u002Fs3-migration-repo\u002Fpre-upgrade-snapshot?wait_for_completion=true {\"indices\":\"*\",\"ignore_unavailable\":true,\"include_global_state\":true}\n  3. CONFIRM: About to update-domain-config on prod-search-cluster to OpenSearch_2.11. Blue\u002Fgreen deployment will take 30-120 minutes. Proceed? (yes\u002Fno)\n  4. aws opensearch update-domain-config --domain-name prod-search-cluster --engine-version OpenSearch_2.11 --region us-east-1\n  5. Monitor: aws opensearch describe-domain --domain-name prod-search-cluster --query 'DomainStatus.{Processing:Processing,EngineVersion:EngineVersion}'\nPOST_VERIFY: (pending execution)\nENDPOINT: https:\u002F\u002Fsearch-prod-search-cluster.us-east-1.es.amazonaws.com (unchanged — AWS blue\u002Fgreen preserves the endpoint)\nCLIENT_NOTES:\n  - OpenSearch 2.11 supports compatible=40 for ES 7.x clients.\n  - Test all application search queries with compatibility mode before full cutover.\n  - Plan to migrate client libraries from elasticsearch-* to opensearch-* within 3-6 months.\n```\n\n> Secondary worked examples moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — load on demand.\n> Read them only when the primary example is not sufficient.\n\n\n\n\n\n\n## Expert heuristic — non-obvious ES-to-OpenSearch migration behaviours\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n> Read it only when this section applies.\n\n\n## Anti-Patterns — NEVER (top 5)\n\n1. NEVER start a migration without a verified snapshot. If the migration\n   fails or corrupts data, the snapshot is the only rollback path. Always\n   take a full snapshot before any in-place upgrade or reindex operation.\n   Verify the snapshot repository with `_verify` before trusting it.\n\n2. NEVER attempt an in-place upgrade with ES-only commercial plugins\n   installed. X-Pack plugins (security, ML, SQL, alerting) do not exist\n   in OpenSearch. The upgrade will fail or produce a broken cluster.\n   Inventory plugins with `_cat\u002Fplugins` and remove or replace ES-only\n   plugins before migration.\n\n3. NEVER skip the version compatibility matrix check. ES 5.x\u002F6.x cannot\n   upgrade directly to OpenSearch — skipping versions requires a new\n   cluster + reindex migration. Attempting an unsupported version jump\n   results in a failed upgrade or data format incompatibility.\n\n4. NEVER assume client compatibility without testing. The `compatible=40`\n   header makes OpenSearch respond like ES 7.x, but it does NOT replicate\n   ES-specific API endpoints (`_xpack\u002F*`). Test every application API\n   call against the target before cutover. Aggregation queries are the\n   most likely to differ.\n\n5. NEVER decommission the source cluster immediately after migration.\n   Keep the source running for a verification window (minimum 7 days\n   recommended). If post-migration issues are discovered, the source\n   cluster is the fallback. Decommission only after all verification\n   checks pass and the team confirms the new cluster handles production\n   traffic.\n\n## Pre-flight safety checks (run before any migration CLI)\n> Moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n> Read it only when this section applies.\n\n\n## Recent AWS features (2024-2026)\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n> Read it only when this section applies.\n\n\n## References\n\n- `references\u002Fmigration-procedures.md` — detailed CLI\u002FAPI scripts for\n  snapshot setup, reindex-from-remote, plugin inventory, and\n  post-migration verification\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked examples (BLOCKED, COMPLETED, snapshot READY)\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight gather commands and pre-flight safety checks\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert behaviours, expert heuristics, recent AWS features\n\n## Domain\n\nAWS CloudOps \u002F Elasticsearch to OpenSearch Migration Operations.\n\n## AWS documentation\n\n- **Amazon OpenSearch Service Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fwhat-is.html\n- **Upgrading Amazon OpenSearch Service** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fversion-maturity.html\n- **Migrating to Amazon OpenSearch Service** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmigration.html\n- **Snapshot management in OpenSearch Service** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmanagedomains-snapshots.html\n- **OpenSearch-compatible APIs** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fuse-casees.html\n- **OpenSearch Plugin Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fsupported-plugins.html\n- **OpenSearch documentation** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002F\n- **OpenSearch version compatibility** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002Fupgrade-to\u002Fupgrade-to\u002F\n- **OpenSearch neural search** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002Fsearch-plugins\u002Fneural-search\u002F\n- **OpenSearch k-NN (vector DB)** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002Fsearch-plugins\u002Fknn\u002Findex\u002F\n- **OpenSearch flow frameworks** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002Fobserving-your-data\u002Fflow-framework\u002F\n- **AWS CLI OpenSearch reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fopensearch\u002F\n- **AWS Well-Architected Framework — Operational Excellence** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwellarchitected\u002Flatest\u002Foperational-excellence-pillar\u002Fwelcome.html\n","# OpenSearch Migration Operator\n\n## What this skill does\n\nExecutes Elasticsearch to OpenSearch migration operations correctly and\nsafely. Runs deterministic pre-checks before any state-changing operation,\nexecutes the migration behind a CONFIRM gate, and verifies the result.\nEvery migration involves version compatibility assessment, plugin\ninventory, snapshot repository setup, index migration strategy selection,\nand client compatibility verification. A wrong migration path causes\ndata loss, broken queries, or client connection failures.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **Quick reference** | Verdict thresholds + pre-check priority order | Before any operation |\n| **STRICT output contract** | Mandatory output block format | Before emitting any response |\n| **Mindset** | Version compatibility model, snapshot vs reindex, client compatibility | Understanding the migration model |\n| **Pre-flight** | Domain metadata gate — version, plugins, snapshot, indices | Before executing any CLI |\n| **Process** | Per-operation planning: assess, snapshot, in-place, new-cluster, blue\u002Fgreen, verify | When choosing which operation to run |\n| **Expert heuristic** | Non-obvious ES-to-OpenSearch migration behaviours | Review before complex decisions |\n| **NEVER** | Anti-patterns that cause data loss, broken clients, or failed migrations | Review before risky operations |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `BLOCKED` | One or more pre-checks failed (incompatible version, ES-only plugin, no snapshot repository, broken index mappings) | List failures, do NOT execute |\n| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI\u002FAPI sequence, wait for operator yes |\n| `COMPLETED` | Migration finished and post-verification passed | Emit new cluster info, verification results, client notes |\n\n**Priority order for pre-checks (apply in this sequence, all must pass for\nREADY):**\n\n1. **Version compatibility** — source ES version must be supported for\n   the target OpenSearch version. ES 7.x -> OpenSearch 1.x\u002F2.x is\n   supported. ES 5.x\u002F6.x requires intermediate upgrade.\n2. **Plugin inventory** — all installed plugins must have OpenSearch\n   equivalents. ES-only plugins (e.g., commercial X-Pack plugins) must\n   be removed or replaced before migration.\n3. **Snapshot repository health** — S3 snapshot repository must be\n   registered and writable. Required for snapshot\u002Frestore migration.\n4. **Index mapping compatibility** — index mappings and settings must be\n   compatible with the target OpenSearch version.\n5. **Client compatibility** — application clients must support OpenSearch\n   or use compatibility mode (`compatible=40`).\n\n**Migration timing baselines (2026):**\n\n- Version compatibility assessment: immediate (API check).\n- Snapshot repository setup: 5-15 minutes.\n- Full snapshot to S3: 10-120 minutes per TB (depends on network and S3\n  write throughput).\n- In-place upgrade (ES 7.10 -> OpenSearch 1.x): 30-120 minutes (blue\u002Fgreen\n  deployment, AWS-managed).\n- Reindex from remote: 1-10 hours per TB (depends on network bandwidth,\n  index size, and mapping complexity).\n- Blue\u002Fgreen new cluster migration: 2-8 hours total (provision new cluster\n  + reindex + cutover).\n\n## STRICT output contract\n\nEvery migration response MUST emit this block per target domain. No prose\nbefore or after the block; the block is the entire actionable output.\n\n```text\nOPERATION: \u003Cassess | snapshot-setup | in-place-upgrade | new-cluster-reindex | blue-green | verify>\nVERDICT: READY | BLOCKED | COMPLETED\nTARGET: \u003Cdomain-name, source-version, target-version>\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. \u003CCLI or API command with parameters populated>\n  2. \u003Cwait command>\n  3. \u003Cnext step>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nENDPOINT: \u003COpenSearch endpoint behavior>\nCLIENT_NOTES: \u003Ccompatibility mode, client library, connection string updates>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Coperation> on \u003Cdomain> in \u003Cregion>.\n  Proceed? (yes\u002Fno)\"\n```\n\nDo NOT omit any field. If a field is not applicable, write `N\u002FA` with a\none-line reason.\n\n## Mindset\n\n**One-line takeaway:** ES-to-OpenSearch migration is not a version bump —\nit is a fork migration. OpenSearch 1.x derives from ES 7.10.2 (the last\nApache 2.0 licensed version). OpenSearch 2.x diverges further. The\nmigration path depends on the source version, installed plugins, and\nclient library.\n\nDriven by four migration realities:\n\n- **Version compatibility determines the path.** ES 7.x can upgrade\n  in-place to OpenSearch 1.x (same codebase lineage). ES 5.x\u002F6.x must\n  upgrade to 7.x first, then to OpenSearch. Skipping versions requires\n  a new cluster + reindex migration. AWS-managed ES domains support\n  in-place upgrade to OpenSearch for eligible versions only.\n\n- **Snapshot\u002Frestore is the safest migration method.** Register an S3\n  repository on both source and target, take a snapshot on the source,\n  and restore on the target. This preserves index mappings, settings,\n  and data without reindexing. Reindex-from-remote is the fallback when\n  snapshot\u002Frestore is not possible (e.g., cross-version with breaking\n  mapping changes).\n\n- **Plugins are the #1 migration blocker.** ES-only plugins (commercial\n  X-Pack features: security, ML, SQL, alerting) do not exist in\n  OpenSearch. OpenSearch has its own equivalents (security plugin,\n  anomaly detection, SQL plugin, alerting plugin), but their APIs and\n  configurations differ. Inventory plugins before planning the migration.\n\n- **Client compatibility mode bridges the gap.** OpenSearch servers can\n  respond with `compatible=40` header to mimic ES 7.x responses. This\n  allows existing ES client libraries (elasticsearch-py, elasticsearch-js,\n  Spring Data Elasticsearch) to work without code changes. But it is a\n  bridge, not a permanent solution — migrate to the OpenSearch client\n  library for long-term compatibility.\n\n## Pre-flight: domain metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n> Moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n> Read it only when this section applies.\n\n**Malformed input:** if the input is invalid or missing required fields,\nemit `VERDICT: BLOCKED` with `REASON: Domain\u002Foperation configuration is\nnot valid or is missing required fields — cannot plan.`\n\n| Domain attribute | Effect on migration |\n|---|---|\n| `EngineVersion: Elasticsearch_7.10` | Can upgrade in-place to OpenSearch 1.x or 2.x. |\n| `EngineVersion: Elasticsearch_6.x or 5.x` | Must upgrade to 7.x first or use new-cluster + reindex. |\n| `EngineVersion: OpenSearch_2.x` | Already on OpenSearch — verify post-migration. |\n| ES-only plugins installed | Must remove or replace before migration. |\n| No snapshot repository configured | BLOCKED for snapshot\u002Frestore migration — set up S3 repository first. |\n| Cluster status `red` | BLOCKED — fix cluster health before migration. |\n| Cluster status `yellow` | Warn — replica shards unavailable; migration proceeds but verify. |\n| Dedicated masters enabled | AWS manages blue\u002Fgreen deployment; in-place upgrade is smoother. |\n| EncryptionAtRest enabled | KMS key follows the domain; no migration impact. |\n| VPC-only domain | Endpoint is internal; client access requires VPC connectivity. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert heuristic — non-obvious ES-to-OpenSearch migration behaviours\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n> Read it only when this section applies.\n\n\n### Step 1: Pre-check gate — BLOCKED if any check fails\n\nRun ALL of the following pre-checks. If ANY fails, the verdict is BLOCKED\nwith the failed checks enumerated in PRE_CHECKS. Do NOT execute.\n\n**For ALL migration operations:**\n1. Domain status is `Active` (not `Processing`, `Upgrading`).\n2. Cluster health is `green` or `yellow` (not `red`).\n3. No active index creation, shard relocation, or recovery in progress.\n4. IAM role for the operator holds `es:ESHttp*` and\n   `opensearch:ESHttp*` permissions.\n\n**For version compatibility assessment:**\n5. Source ES version is identified (5.x, 6.x, 7.x, or OpenSearch 1.x).\n6. Target OpenSearch version is identified (1.x or 2.x).\n7. Version compatibility matrix is checked (see § Version compatibility\n   matrix below).\n\n**For snapshot\u002Frestore migration:**\n5. S3 bucket exists and is accessible.\n6. IAM role has `s3:ListBucket`, `s3:GetObject`, `s3:PutObject` on the\n   bucket.\n7. Snapshot repository plugin is installed (repository-s3 for\n   self-managed; automatic for AWS-managed).\n8. Repository is registered on both source and target clusters.\n9. Test snapshot write\u002Fread succeeds.\n\n**For in-place upgrade:**\n5. Source version is ES 7.10 (the only version eligible for direct\n   in-place upgrade to OpenSearch on AWS).\n6. No ES-only commercial plugins installed.\n7. Domain has dedicated masters enabled (recommended for blue\u002Fgreen\n   deployment).\n8. EBS volume size has headroom for reindexing during upgrade.\n\n**For new-cluster + reindex migration:**\n5. Target OpenSearch domain is provisioned and accessible.\n6. Network connectivity exists between source and target (especially for\n   VPC-only domains).\n7. Target indices created with correct mappings and settings.\n8. Reindex-from-remote is enabled on the target cluster\n   (`\"reindex.remote.whitelist\": \"\u003Csource-endpoint>:443\"`).\n\n**For client compatibility verification:**\n5. Application client library version is identified.\n6. Compatibility mode (`compatible=40`) tested against target cluster.\n7. All application API calls tested against OpenSearch endpoints.\n\n### Step 2: Version compatibility matrix\n\n| Source version | Target version | Migration path | Risk |\n|---|---|---|---|\n| ES 5.x | OpenSearch 1.x | Upgrade to ES 6.x -> 7.x -> OS 1.x (multiple steps) | HIGH |\n| ES 5.x | OpenSearch 2.x | New cluster + reindex (no direct path) | HIGH |\n| ES 6.x | OpenSearch 1.x | Upgrade to ES 7.x -> OS 1.x | MEDIUM |\n| ES 6.x | OpenSearch 2.x | New cluster + reindex | MEDIUM |\n| ES 7.x | OpenSearch 1.x | In-place upgrade (direct fork lineage) | LOW |\n| ES 7.x | OpenSearch 2.x | In-place to OS 1.x -> upgrade to OS 2.x | LOW-MEDIUM |\n| OpenSearch 1.x | OpenSearch 2.x | In-place upgrade | LOW |\n| OpenSearch 2.x | OpenSearch 2.x (newer) | In-place upgrade | LOW |\n\n### Step 3: Plugin compatibility assessment\n\n| ES plugin | OpenSearch equivalent | Action |\n|---|---|---|\n| analysis-icu, phonetic, kuromoji, smartcn | Built-in | No action — pre-installed on OpenSearch |\n| ingest-attachment | Built-in | No action — pre-installed |\n| mapper-murmur3, annotated-text | Built-in | No action — pre-installed |\n| x-pack-security | OpenSearch security plugin | Migrate security config (config.yml, roles.yml) |\n| x-pack-ml | OpenSearch anomaly detection | Reconfigure ML jobs |\n| x-pack-sql | OpenSearch SQL plugin | Update API paths (`_plugins\u002F_sql`) |\n| x-pack-alerting | OpenSearch alerting plugin | Reconfigure monitors and destinations |\n| x-pack-monitoring | OpenSearch performance analyzer | Reconfigure monitoring |\n\n### Step 4: Snapshot repository setup (S3)\n\nIf the migration uses snapshot\u002Frestore, the S3 repository must be set up\non both source and target.\n\n**For AWS-managed domains:** the S3 repository is configured via the\ndomain's snapshot configuration. AWS automatically manages the\nrepository-s3 plugin.\n\n```json\nPUT _snapshot\u002Fs3-migration-repo\n{\n  \"type\": \"s3\",\n  \"settings\": {\n    \"bucket\": \"migration-snapshots-bucket\",\n    \"region\": \"us-east-1\",\n    \"base_path\": \"opensearch-migration\",\n    \"role_arn\": \"arn:aws:iam::111111111111:role\u002FOpenSearchSnapshotRole\"\n  }\n}\n```\n\n**Verify the repository:**\n```\nPOST _snapshot\u002Fs3-migration-repo\u002F_verify\n```\n\nReturns the list of nodes that can write to the repository. All data\nnodes must report `success`.\n\n### Step 5: Snapshot and restore migration\n\nOn the source cluster, create a snapshot:\n```\nPUT _snapshot\u002Fs3-migration-repo\u002Fsnapshot_1?wait_for_completion=true\n{\"indices\":\"index1,index2,index3\",\"ignore_unavailable\":true,\"include_global_state\":false}\n```\n\nOn the target cluster, register the same repository, then restore:\n```\nPOST _snapshot\u002Fs3-migration-repo\u002Fsnapshot_1\u002F_restore?wait_for_completion=false\n{\"indices\":\"index1,index2,index3\",\"ignore_unavailable\":true,\"include_global_state\":false,\"rename_pattern\":\"(.+)\",\"rename_replacement\":\"$1\"}\n```\n\nMonitor restore progress: `GET _cat\u002Frecovery?v` and\n`GET _cluster\u002Fhealth?wait_for_status=green&timeout=60s`.\n\n### Step 6: Reindex-from-remote migration\n\nWhen snapshot\u002Frestore is not possible (cross-major-version, incompatible\nmappings), use reindex-from-remote.\n\nOn the target cluster, reindex from the remote source:\n```\nPOST _reindex?wait_for_completion=false\n{\"source\":{\"remote\":{\"host\":\"https:\u002F\u002Fsearch-source-es-cluster.us-east-1.es.amazonaws.com:443\"},\"index\":\"source-index\",\"size\":5000},\"dest\":{\"index\":\"target-index\"}}\n```\n\n**IMPORTANT:** The target index must be created with the correct mappings\nand settings BEFORE reindexing. Reindex does NOT copy mappings or\nsettings from the source.\n\n**For AWS-managed VPC domains:** the target domain's security group must\nallow inbound HTTPS from the source domain's VPC, or use VPC peering \u002F\nTransit Gateway for cross-VPC connectivity.\n\n### Step 7: In-place upgrade (ES 7.10 to OpenSearch)\n\nFor AWS-managed domains, the in-place upgrade is triggered via:\n\n```bash\naws opensearch update-domain-config \\\n  --domain-name prod-search-cluster \\\n  --engine-version OpenSearch_2.11 \\\n  --region us-east-1\n```\n\nAWS performs a blue\u002Fgreen deployment:\n1. Provisions new nodes with OpenSearch.\n2. Migrates data from old nodes to new nodes.\n3. Routes traffic to the new nodes.\n4. Decommissions the old nodes.\n\nThe domain endpoint does NOT change. Monitor the upgrade status:\n\n```bash\naws opensearch describe-domain \\\n  --domain-name prod-search-cluster \\\n  --query 'DomainStatus.{Status:Processing, UpgradeProcessing:UpgradeProcessing, EngineVersion:EngineVersion}' \\\n  --output json\n```\n\n### Step 8: Blue\u002Fgreen new cluster migration\n\nFor complex migrations (multiple version jumps, plugin incompatibilities),\nprovision a new OpenSearch domain and migrate indices.\n\n**Strategy:**\n1. Provision new OpenSearch domain.\n2. Register S3 snapshot repository on both clusters.\n3. Snapshot all indices from the source.\n4. Restore on the target.\n5. Verify data completeness (document counts, mapping fidelity).\n6. Update application connection strings to the new endpoint.\n7. Decommission the source cluster after a verification window.\n\n**Downtime:** Near-zero if the source cluster remains read-write during\nthe migration. Applications write to the source; reindex or snapshot-\nrestore copies data; final cutover requires a brief write freeze for\ndelta sync.\n\n### Step 9: Client compatibility verification\n\nAfter migration, verify that application clients work correctly against\nthe OpenSearch endpoint.\n\n| Client library | Compatibility | Action |\n|---|---|---|\n| elasticsearch-py\u002Fjs\u002Fgo 7.x | Works with `compatible=40` | Long-term: migrate to opensearch-* equivalent |\n| Spring Data Elasticsearch | Works with `compatible=40` | Long-term: migrate to Spring Data OpenSearch |\n| opensearch-py \u002F @opensearch-project\u002Fopensearch | Native OpenSearch | No action needed |\n\n**Testing procedure:** Point the application at the OpenSearch endpoint\nwith `?compatible=40`. Run the integration test suite. Verify search\nresults match the ES baseline. Test index, update, and delete operations.\nAggregation queries are the most likely to differ — test them first.\n\n### Step 10: Post-verification — COMPLETED\n\nAfter the migration finishes, run post-verification. ALL checks must pass\nfor `COMPLETED`.\n\n1. Cluster health is `green` on the target OpenSearch domain.\n2. Document counts match between source and target indices.\n3. Index mappings are preserved or correctly migrated.\n4. All application search queries return correct results.\n5. Client compatibility mode (`compatible=40`) works for existing ES\n   clients.\n6. Snapshot repository is registered and functional on the target.\n7. No red shards or unassigned replicas.\n8. Monitoring and alerting are configured on the target domain.\n\nIf ANY verification fails, emit `VERDICT: ERROR` with failure details —\ndo not claim COMPLETED.\n\n## Output format\n\nSee § STRICT output contract for the mandatory block. Worked examples\nbelow.\n\n### Worked example — migration readiness assessment (READY)\n\n```text\nOPERATION: assess\nVERDICT: READY\nTARGET: prod-search-cluster (ES 7.10 -> OpenSearch 2.11)\nPRE_CHECKS:\n  - [PASS] Domain status is Active\n  - [PASS] Cluster health is green (45 indices, 12 TB)\n  - [PASS] Source version Elasticsearch_7.10 is eligible for in-place upgrade\n  - [PASS] All installed plugins (analysis-icu, analysis-phonetic, ingest-attachment) have OpenSearch equivalents\n  - [PASS] No ES-only commercial plugins detected\n  - [PASS] No active shard relocation or recovery in progress\nSTEPS:\n  1. Set up S3 snapshot repository (if not already configured):\n     PUT _snapshot\u002Fs3-migration-repo {\"type\":\"s3\",\"settings\":{\"bucket\":\"migration-snapshots\",\"region\":\"us-east-1\",\"base_path\":\"opensearch-migration\"}}\n  2. Take a pre-upgrade full snapshot:\n     PUT _snapshot\u002Fs3-migration-repo\u002Fpre-upgrade-snapshot?wait_for_completion=true {\"indices\":\"*\",\"ignore_unavailable\":true,\"include_global_state\":true}\n  3. CONFIRM: About to update-domain-config on prod-search-cluster to OpenSearch_2.11. Blue\u002Fgreen deployment will take 30-120 minutes. Proceed? (yes\u002Fno)\n  4. aws opensearch update-domain-config --domain-name prod-search-cluster --engine-version OpenSearch_2.11 --region us-east-1\n  5. Monitor: aws opensearch describe-domain --domain-name prod-search-cluster --query 'DomainStatus.{Processing:Processing,EngineVersion:EngineVersion}'\nPOST_VERIFY: (pending execution)\nENDPOINT: https:\u002F\u002Fsearch-prod-search-cluster.us-east-1.es.amazonaws.com (unchanged — AWS blue\u002Fgreen preserves the endpoint)\nCLIENT_NOTES:\n  - OpenSearch 2.11 supports compatible=40 for ES 7.x clients.\n  - Test all application search queries with compatibility mode before full cutover.\n  - Plan to migrate client libraries from elasticsearch-* to opensearch-* within 3-6 months.\n```\n\n> Secondary worked examples moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — load on demand.\n> Read them only when the primary example is not sufficient.\n\n\n\n\n\n\n## Expert heuristic — non-obvious ES-to-OpenSearch migration behaviours\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n> Read it only when this section applies.\n\n\n## Anti-Patterns — NEVER (top 5)\n\n1. NEVER start a migration without a verified snapshot. If the migration\n   fails or corrupts data, the snapshot is the only rollback path. Always\n   take a full snapshot before any in-place upgrade or reindex operation.\n   Verify the snapshot repository with `_verify` before trusting it.\n\n2. NEVER attempt an in-place upgrade with ES-only commercial plugins\n   installed. X-Pack plugins (security, ML, SQL, alerting) do not exist\n   in OpenSearch. The upgrade will fail or produce a broken cluster.\n   Inventory plugins with `_cat\u002Fplugins` and remove or replace ES-only\n   plugins before migration.\n\n3. NEVER skip the version compatibility matrix check. ES 5.x\u002F6.x cannot\n   upgrade directly to OpenSearch — skipping versions requires a new\n   cluster + reindex migration. Attempting an unsupported version jump\n   results in a failed upgrade or data format incompatibility.\n\n4. NEVER assume client compatibility without testing. The `compatible=40`\n   header makes OpenSearch respond like ES 7.x, but it does NOT replicate\n   ES-specific API endpoints (`_xpack\u002F*`). Test every application API\n   call against the target before cutover. Aggregation queries are the\n   most likely to differ.\n\n5. NEVER decommission the source cluster immediately after migration.\n   Keep the source running for a verification window (minimum 7 days\n   recommended). If post-migration issues are discovered, the source\n   cluster is the fallback. Decommission only after all verification\n   checks pass and the team confirms the new cluster handles production\n   traffic.\n\n## Pre-flight safety checks (run before any migration CLI)\n> Moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n> Read it only when this section applies.\n\n\n## Recent AWS features (2024-2026)\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n> Read it only when this section applies.\n\n\n## References\n\n- `references\u002Fmigration-procedures.md` — detailed CLI\u002FAPI scripts for\n  snapshot setup, reindex-from-remote, plugin inventory, and\n  post-migration verification\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked examples (BLOCKED, COMPLETED, snapshot READY)\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight gather commands and pre-flight safety checks\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert behaviours, expert heuristics, recent AWS features\n\n## Domain\n\nAWS CloudOps \u002F Elasticsearch to OpenSearch Migration Operations.\n\n## AWS documentation\n\n- **Amazon OpenSearch Service Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fwhat-is.html\n- **Upgrading Amazon OpenSearch Service** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fversion-maturity.html\n- **Migrating to Amazon OpenSearch Service** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmigration.html\n- **Snapshot management in OpenSearch Service** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmanagedomains-snapshots.html\n- **OpenSearch-compatible APIs** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fuse-casees.html\n- **OpenSearch Plugin Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fsupported-plugins.html\n- **OpenSearch documentation** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002F\n- **OpenSearch version compatibility** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002Fupgrade-to\u002Fupgrade-to\u002F\n- **OpenSearch neural search** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002Fsearch-plugins\u002Fneural-search\u002F\n- **OpenSearch k-NN (vector DB)** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002Fsearch-plugins\u002Fknn\u002Findex\u002F\n- **OpenSearch flow frameworks** — https:\u002F\u002Fopensearch.org\u002Fdocs\u002Flatest\u002Fobserving-your-data\u002Fflow-framework\u002F\n- **AWS CLI OpenSearch reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fopensearch\u002F\n- **AWS Well-Architected Framework — Operational Excellence** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwellarchitected\u002Flatest\u002Foperational-excellence-pillar\u002Fwelcome.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":44},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"when_not_to_use":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":37,"invocation_example":42,"activation_triggers":43},"opensearch, elasticsearch, analytics, migration, snapshot, reindex, blue-green","4","Jacky Chan — AWS Community Builder","aws-cloudops","Analytics","0.1.0","OpenSearch, Elasticsearch, migration, version compatibility, snapshot, reindex, S3 repository, plugin compatibility, client compatibility, compatibility mode, blue\u002Fgreen, in-place upgrade, neural search, vector DB, flow frameworks","operate","high","false","capability","Planning or executing an Elasticsearch to OpenSearch migration, assessing version compatibility, setting up S3 snapshot repositories, migrating indices via snapshot\u002Frestore or reindex-from-remote, removing ES-only plugins, evaluating in-place upgrade vs new cluster, planning blue\u002Fgreen downtime strategy, configuring OpenSearch client compatibility mode, or verifying post-migration cluster health.","true","READY | BLOCKED | COMPLETED","OpenSearch security audits or IAM policy reviews (use opensearch-domain- auditor), OpenSearch performance tuning beyond migration scope (use query and shard analysis directly), building new OpenSearch clusters from scratch (use opensearch-domain-deployer), or OpenSearch index mapping design (application-level work). This skill focuses on the migration operation — not security posture or greenfield deployment.","active","Input: either (a) an Elasticsearch\u002FOpenSearch domain configuration with the intended migration operation (assess, snapshot-setup, in-place-upgrade, new-cluster-reindex, blue-green, verify), OR (b) a domain endpoint + API health output for live-account execution. Output: a deterministic OPERATION\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block per operation, where VERDICT is one of READY, BLOCKED, COMPLETED.","# Minimal valid input (offline plan classification):\nDomain: prod-search-cluster\nRegion: us-east-1\nCurrent: Elasticsearch 7.10 (AWS managed)\nTarget: OpenSearch 2.x (AWS managed)\nOperation: assess-migration-readiness\n\nCluster configuration:\n  - ES version: 7.10\n  - Node count: 6 (3 master, 3 data)\n  - Instance type: r6g.large.search\n  - Plugins: analysis-icu, analysis-phonetic, ingest-attachment\n  - Indices: 45 (12 TB total)\n  - Snapshot repository: not configured\n  - Custom plugins: none\n\nEmit the standard VERDICT block.","migrate Elasticsearch to OpenSearch, ES to OpenSearch migration, OpenSearch version compatibility, OpenSearch snapshot repository S3, reindex from remote OpenSearch, OpenSearch plugin compatibility, OpenSearch client compatibility mode, in-place upgrade OpenSearch, blue\u002Fgreen migration OpenSearch, OpenSearch 2.x migration, OpenSearch neural search, OpenSearch vector DB, OpenSearch flow frameworks, post-migration verification OpenSearch, Elasticsearch deprecation migration","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws opensearch describe-domain, aws opensearch describe-domain-config, aws opensearch update-domain-config, aws es describe-elasticsearch-domain (for legacy ES domains), aws es update-elasticsearch-domain-config, aws s3 ls\u002Fhead for snapshot repository buckets, and curl against the OpenSearch\u002FElasticsearch _cluster\u002F health...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fopensearch-migration-operator",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill opensearch-migration-operator",{"tool":59,"command":60},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill opensearch-migration-operator",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill opensearch-migration-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002FSKILL.md",true,[67,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",7578,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Feval\u002Ftest-cases.yaml",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Fblue-green-migration-completed.md",748,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fbaselines\u002Fblue-green-migration-completed.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Fes68-blocked-version-plugin.md",755,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fbaselines\u002Fes68-blocked-version-plugin.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fes710-inplace-upgrade-ready.md",972,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fbaselines\u002Fes710-inplace-upgrade-ready.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Freindex-from-remote-ready.md",784,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fbaselines\u002Freindex-from-remote-ready.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Fsnapshot-setup-blocked-no-s3-bucket.md",699,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fbaselines\u002Fsnapshot-setup-blocked-no-s3-bucket.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",1540,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",4285,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fevals.json",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Fblue-green-migration-completed.md",1123,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fprompts\u002Fblue-green-migration-completed.md",{"path":106,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Fes68-blocked-version-plugin.md",857,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fprompts\u002Fes68-blocked-version-plugin.md",{"path":110,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fes710-inplace-upgrade-ready.md",1033,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fprompts\u002Fes710-inplace-upgrade-ready.md",{"path":114,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Freindex-from-remote-ready.md",1160,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fprompts\u002Freindex-from-remote-ready.md",{"path":118,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Fsnapshot-setup-blocked-no-s3-bucket.md",791,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fevals\u002Fprompts\u002Fsnapshot-setup-blocked-no-s3-bucket.md",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"examples\u002FREADME.md",5143,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fexamples\u002FREADME.md",{"path":126,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",6315,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fdiagnostic-commands.md",2470,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Freferences\u002Fdiagnostic-commands.md",{"path":134,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fmigration-procedures.md",9039,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Freferences\u002Fmigration-procedures.md",{"path":138,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fworked-examples.md",3632,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Freferences\u002Fworked-examples.md",{"path":142,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":143,"sourceHtmlUrl":144},"skill.usf.yaml",4623,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-migration-operator\u002Fskill.usf.yaml",[146,153,160,167,174,181],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"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":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"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":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"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":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"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":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"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":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"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",[],[]]