OpenSearch Domain Deployer
An AWS CloudOps agent skill that provisions Amazon OpenSearch Service
domains with correct defaults. The skill walks the operator through a
10-step provisioning procedure and emits a READY_TO_DEPLOY checklist with
verification commands.
Activation keywords
create OpenSearch, provision OpenSearch, managed cluster, OpenSearch
Serverless, data nodes, dedicated master nodes, UltraWarm, cold storage,
Multi-AZ, 3-zone deployment, instance type, EBS storage, gp3, io1,
encryption at rest, encryption in transit, TLS, KMS, VPC access, public
access, fine-grained access control, FGAC, IAM master user, Cognito,
snapshot repository, shard count, replica count, vector search collection,
streaming ingestion.
Invocation contract (hard requirement)
When this skill is invoked with a domain-provisioning request (domain
name, instance type, workload shape, region, or a partial configuration),
the agent MUST respond with the READY_TO_DEPLOY checklist defined in
"Output format" using the literal all-caps labels DOMAIN:, VERDICT:,
CHECKLIST:, and VERIFICATION_COMMANDS:. Do NOT preface with prose,
headings, or disclaimers — emit the block as the first lines of the response.
Mindset
One-line takeaway: OpenSearch correctness is decided at creation
time. Encryption at rest, FGAC mode, VPC vs public access, and Multi-AZ
topology are impossible or disruptive to change later — treat each as a
one-way door and force an explicit decision before create-domain.
Three misconceptions dominate OpenSearch misdesign:
- "Pick the largest instance and scale down later." OpenSearch charges
per instance-hour regardless of utilization. Size based on storage +
the shard-count heuristic (1 shard per 30-50 GB), not "we might need it."
- "Public access with IP allowlist is fine for production." An IP
allowlist is a network control, not authentication. VPC-only with
FGAC + IAM is the production baseline.
- "Dedicated master nodes are optional." Without dedicated masters,
cluster-state changes consume CPU on data nodes — query latency spikes
during recovery. Mandatory for > 10 data nodes or latency-sensitive workloads.
Quick navigation
| Section |
When to read |
| Prerequisites |
Always — verify before provisioning |
| Step 1 — Deployment type |
Managed cluster vs Serverless |
| Step 2 — Instance types |
t3/r6g/m6g/c6g.search selection |
| Step 3 — Multi-AZ + dedicated masters |
Production topology |
| Step 4 — Storage (EBS, instance) |
gp3 vs io1 vs instance-store |
| Step 5 — Encryption |
KMS at-rest, TLS in-transit |
| Step 6 — Network + FGAC |
VPC vs public, IAM vs Cognito |
| Step 7 — Indexing (shards, replicas) |
Shard count, replica count |
| Step 8 — Snapshots |
Automated + manual to S3 |
| Step 9 — UltraWarm / cold storage |
Tiered storage for cost |
| Step 10 — Serverless / vector search |
Latest 2023-2026 features |
| NEVER do these things |
Review before signing off |
| Output format |
The literal checklist template |
| references/topology-and-indexing.md |
Deep Multi-AZ + shard math |
| references/provisioning-cli-commands.md |
Copy-pasteable CLI sequence |
Reasoning framework (why provisioning order matters)
OpenSearch configurations have dependency and immutability semantics.
The four one-way doors decided at creation time:
- Encryption at rest — MUST enable at creation. Cannot be added to
an existing domain without new domain + reindex.
- FGAC mode (IAM vs Cognito) — chosen at creation. Switching modes
requires full reindex via remote reindex.
- VPC vs public access — cannot switch post-creation. No modify path.
- Multi-AZ topology — requires node count multiple of 3. Adding a
third AZ to a 2-AZ cluster requires disruptive node-count change.
Additionally: instance type changes require blue-green deployment (multi-hour
shard migration). Shard count changes require _split or _shrink (disruptive).
The full configuration dependency graph (which settings are immutable,
which silently downgrade, which enable downstream features) is in
references/topology-and-indexing.md.
Prerequisites (verify before provisioning)
| Prerequisite |
Why it matters |
How to verify |
| AWS account with OpenSearch access |
Required |
aws sts get-caller-identity |
| Region selected |
Domains are region-scoped |
aws configure get region |
| Domain name unique in account-region |
Name is immutable; endpoint derives from it |
aws opensearch describe-domain --domain-name <name> |
| VPC ID + subnets in 3 AZs (Multi-AZ) |
Multi-AZ requires 3 AZs |
aws ec2 describe-subnets — confirm 3 distinct AZs |
| Security group with port 443 inbound |
OpenSearch uses HTTPS |
aws ec2 describe-security-groups --group-ids <sg> |
| KMS key ARN (if encryption with CMK) |
Custom encryption requires CMK in same region |
aws kms describe-key --key-id <cmk-id> |
| IAM role ARN for master user (if FGAC) |
FGAC requires master user |
aws iam get-role --role-name <role> |
| Cognito user pool + identity pool (if Cognito FGAC) |
Required for Cognito-based FGAC |
aws cognito-idp describe-user-pool --user-pool-id <pool> |
| S3 bucket + IAM role for manual snapshots |
Manual snapshots require registered repository |
aws s3api head-bucket --bucket <bucket> |
| Workload description (data size, query pattern) |
Drives instance/shard/replica decisions |
Captured in prompt |
If any prerequisite is missing, output VERDICT: PREREQUISITES_MISSING
and cite the specific gap.
Sizing heuristics (quick reference)
Full detail in references/topology-and-indexing.md.
Shard count: ceil(total_data_size_gb / 30) for write-heavy, / 50
for read-heavy. Over-sharding small datasets wastes overhead; use 1 shard
for < 10 GB.
Storage capacity: total_storage = raw_data × (1 + replica_count) × 1.1
(10% overhead + 15% free-space watermark). Required data nodes =
ceil(total_storage / per_node_storage). Round UP to multiple of 3 for Multi-AZ.
Dedicated masters: mandatory for > 10 data nodes. Type: c6g.large.search
for up to 15 data nodes; c6g.2xlarge.search for 15-30; c6g.4xlarge.search for 30+.
Heap: 50% of instance RAM, capped at 31 GB (compressed oops boundary).
10-step provisioning procedure
Step 1 — Deployment type: managed cluster vs Serverless (immutable)
Decision:
- Unpredictable/bursty workload → OpenSearch Serverless (auto-scaling,
pay-per-use). Does NOT support UltraWarm, cold storage, dedicated masters,
or cross-cluster search.
- Steady-state + predictable → Managed cluster (full feature set).
- Vector search only → Serverless VECTORSEARCH collection.
- Needs UltraWarm/cold storage → Managed cluster (Serverless lacks tiered storage).
Step 2 — Instance types (managed cluster)
| Family |
Examples |
Optimized for |
Use when |
r6g.search / r7g.search |
r6g.large to r6g.4xlarge |
Memory |
Production DEFAULT |
c6g.search |
c6g.large to c6g.2xlarge |
Compute |
Aggregations, ML; dedicated masters |
m6g.search |
m6g.large to m6g.4xlarge |
Balanced |
Mixed workloads |
i3.search |
i3.large to i3.2xlarge |
Instance storage (NVMe) |
Very high IOPS; log analytics |
t3.search |
t3.small to t3.medium |
Burst |
Dev/test ONLY |
Legacy (t2,m3,m4,c4,r3,r4,i2) |
— |
— |
DO NOT USE — end-of-life |
Size by workload:
- Dev/test:
t3.small.search × 1 (no Multi-AZ).
- Small production (< 50 GB):
r6g.large.search × 3.
- Mid production (50-500 GB):
r6g.2xlarge.search × 3-6 (Multi-AZ).
- Large production (500 GB-5 TB):
r6g.4xlarge.search × 6-12 + 3 dedicated masters.
- Very large (5+ TB): shard across domains OR use UltraWarm/cold storage.
NEVER use t3.small.search for production — CPU credits deplete and
throttle under sustained traffic.
Step 3 — Multi-AZ + dedicated master nodes
Multi-AZ (3-zone) is the primary resilience control. Instance count must
be a multiple of 3.
- Enable
ZoneAwarenessEnabled=true + AvailabilityZoneCount=3.
- OpenSearch places primary and replica shards in different AZs.
- A 3-node cluster with
replica=1 tolerates one AZ loss.
Dedicated masters (3 — one per AZ):
- Mandatory for > 10 data nodes, latency-sensitive workloads (p99 < 100 ms),
or frequent index creation.
- Master type:
c6g.large.search (≤15 data nodes), c6g.2xlarge.search
(15-30), c6g.4xlarge.search (30+).
- Masters are CPU-bound, not memory-bound. Use
c6g, not r6g.
NEVER use a 2-AZ topology with odd node count — uneven shard
distribution makes one AZ a SPOF.
Step 4 — Storage (EBS vs instance-store)
| Volume type |
IOPS |
Use when |
gp3 (default) |
3,000 baseline, up to 16,000 |
DEFAULT CHOICE — most production |
io1 |
up to 64,000 provisioned |
High-IOPS; consistent latency |
standard (magnetic) |
low |
DO NOT USE — legacy |
- EBS size: 10 GB - 6 TB (gp3). Plan for 15% free (write-block watermark at 85%).
- Instance-store (NVMe):
i3.search only. Higher IOPS but ephemeral — data
lost on instance failure. Use with replica >= 1.
Common mistake: sizing EBS for raw data without the replica + overhead
multiplier. A 500 GB index with 1 replica needs 500 × 2 × 1.1 = 1.1 TB.
Step 5 — Encryption (at-rest + in-transit)
Encryption at rest:
- MUST enable at domain creation. Cannot be added later.
- Uses AWS KMS. Default: AWS-managed key. For compliance: customer CMK.
Encryption in transit (TLS):
- Recommended at creation. Can enable post-creation but triggers rolling
node replacement disconnecting clients for 10-30 minutes.
- Use
Policy-Min-TLS-1-2-2019-07 (TLS 1.2 minimum). Never allow TLS 1.0/1.1.
aws opensearch create-domain ... \
--encryption-at-rest-options Enabled=true,KmsKeyId=arn:aws:kms:...:alias/<cmk> \
--node-to-node-encryption-options Enabled=true \
--domain-endpoint-options EnforceHTTPS=true,TLSSecurityPolicy=Policy-Min-TLS-1-2-2019-07
Step 6 — Network access + fine-grained access control (FGAC)
Network access:
| Mode |
Use when |
| VPC-only |
PRODUCTION. Network isolation; security group controls ingress. |
| Public |
Dev/test only. IP allowlist is a network control, not authentication. |
FGAC modes (mutually exclusive — choose at creation):
| Mode |
Master user |
Use when |
| IAM master user |
IAM role ARN |
Programmatic access; AWS-native orgs |
| Cognito user pool |
Cognito pool + identity pool |
Human users; SSO; web-app dashboards |
| IP-only (no FGAC) |
N/A |
DO NOT USE for production |
Common mistake: public access with IP allowlist for "production." Always
use VPC-only access with FGAC for production.
Step 7 — Indexing (shard count, replica count)
- Shard count: apply the 30-50 GB per shard rule. Set at index creation
via
"number_of_shards": N. Change post-creation: _split/_shrink
(disruptive).
- Replica count: default 1. Set via
"number_of_replicas": N.
Changeable at runtime (no disruption). Multi-AZ places replicas in
different AZs.
| Replica |
Storage multiplier |
Use when |
| 0 |
1x |
Dev/test only (data loss on failure) |
| 1 |
2x |
Production standard |
| 2 |
3x |
High availability (rare; cost) |
NEVER over-shard a small dataset. A 1 GB index with 5 shards wastes
overhead — use 1 shard.
Step 8 — Snapshots (automated + manual)
- Automated: daily to AWS-managed S3. Retention 1-35 days (configurable).
Used for point-in-time recovery to same or new domain.
- Manual: customer-managed S3 bucket. Requires "snapshot repository"
registered via
PUT _snapshot/<repo>. Used for long-term retention,
cross-cluster migration, backup before upgrades.
Full snapshot repository registration and restore CLI is in
references/provisioning-cli-commands.md.
NEVER rely on automated snapshots as the ONLY backup. For long-term
retention or cross-region DR, configure manual snapshots.
Step 9 — UltraWarm and cold storage (managed cluster only)
Serverless does NOT support these. Managed cluster only.
- UltraWarm: read-only warm tier. ~50% cheaper than hot. Indices become
READ-ONLY after migration. Hot→warm via ISM; warm→hot requires reindex.
- Cold storage: read-only archive on S3. ~80% cheaper. Recall takes
minutes-hours. Requires UltraWarm enabled.
ISM lifecycle: hot (active) → warm (7d) → cold (30d) → delete (365d).
NEVER use UltraWarm as a write target — READ-ONLY. Writes must
complete on hot tier before ISM migrates.
Step 10 — OpenSearch Serverless / vector search / streaming ingestion
- OpenSearch Serverless: auto-scaling, pay-per-use (OCU billing). No
capacity management. Separate API (
opensearchserverless).
- Vector search collections:
--type VECTORSEARCH. Optimized for k-NN
similarity search (HNSW, IVF). For RAG/generative AI workloads.
- Streaming ingestion: direct from Kinesis, MSK, or S3 without Lambda.
Lower latency than Lambda-based ingestion.
- Cross-cluster search: connect multiple domains for federated search.
Common mistake: provisioning a managed cluster for vector-search-only
workload. Serverless VECTORSEARCH is cheaper and simpler for pure k-NN.
NEVER do these things
NEVER use public access for a production OpenSearch domain. Public
access exposes the endpoint to internet scanning. VPC-only with FGAC + IAM.
NEVER forget to enable encryption at rest at domain creation.
Adding it later requires a new domain + full reindex + client repoint.
NEVER use t3.small.search for production. CPU credits deplete
under sustained traffic. Use r6g.search or r7g.search.
NEVER provision a 2-AZ topology with odd node count. Multi-AZ
requires 3 AZs and node count multiple of 3. Uneven allocation = SPOF.
NEVER skip dedicated master nodes for clusters > 10 data nodes.
Without dedicated masters, cluster-state updates spike query latency
during recovery. Use 3 dedicated masters (one per AZ).
Extended anti-patterns (JVM heap cap, TLS policy, IP-only FGAC, automated
snapshot reliance, FGAC mode switch, UltraWarm writes, EOL instances) are
documented in references/topology-and-indexing.md.
Error handling
| Error |
Cause |
Fix |
ResourceAlreadyExistsException |
Domain name taken |
Check existing config; update mutable settings or create new domain |
| Encryption-at-rest enable fails on existing domain |
Cannot add post-creation |
Create NEW domain with encryption, reindex via _remote/reindex |
| Multi-AZ create with uneven node count |
InstanceCount not divisible by 3 |
Round UP to next multiple of 3 |
| Dedicated master toggle during update |
Blue-green deployment (1-4 hours) |
Enable at creation; toggle requires maintenance window |
RepositoryMissingException |
Snapshot repo not registered |
Register via PUT _snapshot/<repo> before taking snapshots |
| FGAC mode switch fails |
IAM↔Cognito not supported via update |
Create NEW domain with desired FGAC mode, reindex |
Cluster stuck in PROCESSING |
Blue-green on large cluster (1-4 hours) |
aws opensearch describe-domain --query 'DomainStatus.Processing' — wait for false |
Output format
DOMAIN: <domain-or-collection-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓|✗] Deployment type: managed cluster | serverless
[✓|✗] Instance type: <family>.<size>.search (data nodes)
[✓|✗] Instance count: <N> data nodes (multiple of 3 for Multi-AZ)
[✓|✗] Multi-AZ (3-zone): Enabled | Disabled
[✓|✗] Dedicated master nodes: <N> × <family>.<size>.search | None
[✓|✗] Storage: EBS <type> <size>GB | instance-store NVMe
[✓|✗] Encryption at rest: Enabled (customer CMK <key-arn> | AWS-managed) | Disabled
[✓|✗] Encryption in transit (TLS): Enabled (Policy-Min-TLS-1-2-2019-07) | Disabled
[✓|✗] Network access: VPC-only (subnets: <ids>, SG: <sg-id> port 443) | Public (IP allowlist)
[✓|✗] Fine-grained access control (FGAC): IAM master user (<role-arn>) | Cognito (<pool-id>) | Disabled
[✓|✗] Master user: IAM role <arn> | Cognito user <username>
[✓|✗] Shard count rule: 30-50 GB per shard applied
[✓|✗] Replica count: <N> (tolerates <N> node losses)
[✓|✗] Automated snapshots: Enabled (retention <N> days)
[✓|✗] Manual snapshot repository: registered (S3 bucket <name>, role <arn>) | None
[✓|✗] UltraWarm: Enabled (<N> × <type>) | Disabled
[✓|✗] Cold storage: Enabled | Disabled
[✓|✗] OpenSearch Serverless: Yes (collection type <type>) | No
VERIFICATION_COMMANDS:
aws opensearch describe-domain --domain-name <name>
aws opensearch describe-domain-config --domain-name <name>
aws ec2 describe-security-groups --group-ids <sg-id>
aws kms describe-key --key-id <cmk-id>
aws iam get-role --role-name <master-role>
Worked example — production managed cluster with Multi-AZ
DOMAIN: prod-search
VERDICT: READY_TO_DEPLOY
CHECKLIST:
[✓] Deployment type: managed cluster
[✓] Instance type: r6g.2xlarge.search (data nodes)
[✓] Instance count: 6 data nodes (2 per AZ × 3 AZs)
[✓] Multi-AZ (3-zone): Enabled (us-east-1a/b/c)
[✓] Dedicated master nodes: 3 × c6g.large.search (1 per AZ)
[✓] Storage: EBS gp3 100GB per node (600 GB cluster capacity)
[✓] Encryption at rest: Enabled (customer CMK alias/prod-opensearch-kms)
[✓] Encryption in transit (TLS): Enabled (Policy-Min-TLS-1-2-2019-07)
[✓] Network access: VPC-only (subnets: subnet-0aaa/0bbb/0ccc, SG: sg-search123 port 443)
[✓] Fine-grained access control (FGAC): IAM master user (arn:aws:iam::123456789012:role/opensearch-master)
[✓] Master user: IAM role arn:aws:iam::123456789012:role/opensearch-master
[✓] Shard count rule: 30 GB per shard applied (17 shards for 500 GB indices)
[✓] Replica count: 1 (tolerates 1 node loss per shard)
[✓] Automated snapshots: Enabled (retention 14 days)
[✓] Manual snapshot repository: registered (S3 bucket opensearch-snapshots-prod, role arn:aws:iam::123456789012:role/opensearch-snapshot)
[✓] UltraWarm: Disabled (workload is search, not time-series)
[✓] Cold storage: Disabled
[✓] OpenSearch Serverless: No
VERIFICATION_COMMANDS:
aws opensearch describe-domain --domain-name prod-search
aws opensearch describe-domain-config --domain-name prod-search
aws ec2 describe-security-groups --group-ids sg-search123
aws kms describe-key --key-id alias/prod-opensearch-kms
aws iam get-role --role-name opensearch-master
STRICT output contract
This section codifies the exact output shape the eval harness asserts
against. Every invocation MUST produce output matching this contract or
the response is rejected.
Required output structure
Every response MUST be a single block with these literal labels, in order,
as the first lines of the response (no preamble, no prose, no disclaimers):
DOMAIN: <domain-or-collection-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓|✗] Deployment type: managed cluster | serverless
[✓|✗] Instance type: <family>.<size>.search (data nodes)
[✓|✗] Instance count: <N> data nodes (multiple of 3 for Multi-AZ)
[✓|✗] Multi-AZ (3-zone): Enabled | Disabled
[✓|✗] Dedicated master nodes: <N> × <family>.<size>.search | None
[✓|✗] Storage: EBS <type> <size>GB | instance-store NVMe
[✓|✗] Encryption at rest: Enabled (customer CMK <key-arn> | AWS-managed) | Disabled
[✓|✗] Encryption in transit (TLS): Enabled (Policy-Min-TLS-1-2-2019-07) | Disabled
[✓|✗] Network access: VPC-only (subnets: <ids>, SG: <sg-id> port 443) | Public (IP allowlist)
[✓|✗] Fine-grained access control (FGAC): IAM master user (<role-arn>) | Cognito (<pool-id>) | Disabled
[✓|✗] Master user: IAM role <arn> | Cognito user <username>
[✓|✗] Shard count rule: 30-50 GB per shard applied
[✓|✗] Replica count: <N> (tolerates <N> node losses)
[✓|✗] Automated snapshots: Enabled (retention <N> days)
[✓|✗] Manual snapshot repository: registered (S3 bucket <name>, role <arn>) | None
[✓|✗] UltraWarm: Enabled (<N> × <type>) | Disabled
[✓|✗] Cold storage: Enabled | Disabled
[✓|✗] OpenSearch Serverless: Yes (collection type <type>) | No
VERIFICATION_COMMANDS:
aws opensearch describe-domain --domain-name <name>
aws opensearch describe-domain-config --domain-name <name>
aws ec2 describe-security-groups --group-ids <sg-id>
aws kms describe-key --key-id <cmk-id>
aws iam get-role --role-name <master-role>
FORBIDDEN output patterns
NEVER output READY_TO_DEPLOY without listing every checklist item
with [✓] or [✗]. Every row must appear with an explicit status marker.
The eval harness asserts a minimum row count.
NEVER omit the instance type recommendation. Must specify the exact
.search-suffixed type (e.g., r6g.large.search). "TBD" or "memory-optimized"
is rejected.
NEVER recommend public access for production. VPC-only is the
production default. Only dev/test may use public, with explicit note.
NEVER emit a checklist without the encryption-at-rest status.
Encryption at rest is immutable after creation — omitting it leaves the
operator blind to a one-way door decision.
NEVER substitute lowercase or markdown-styled labels for the literal
all-caps DOMAIN:, VERDICT:, CHECKLIST:, VERIFICATION_COMMANDS:.
NEVER preface the checklist with prose, headings, or disclaimers.
The DOMAIN: line must be the first line of the response.
Recent AWS features (2022-2026)
- OpenSearch Serverless (2022-2023): Auto-scaling, pay-per-use. Separate
API. Does NOT support UltraWarm, cold storage, dedicated masters.
- Vector search collections (2023-2024): Serverless
VECTORSEARCH. k-NN
similarity search (HNSW, IVF). For RAG/generative AI workloads.
- Streaming ingestion (2023-2024): Direct from Kinesis, MSK, or S3
without Lambda. Lower latency than Lambda-based ingestion.
- Cross-cluster search (2023-2024): Connect multiple domains for
federated search via
connections API.
- gp3 EBS default (2022-2023): gp3 replaces gp2. Higher baseline IOPS
(3,000 vs gp2's 250). Cheaper and faster.
- Graviton (g-series) instance types (2022-2024):
r6g, c6g, m6g
offer ~20% better price/performance over Intel. Default for new clusters.
- OpenSearch 2.x (2022-2024): Anomaly detection, k-NN boosts, session-
based search, streaming ingestion. Use OpenSearch 2.11+.
References
references/topology-and-indexing.md — managed vs Serverless feature
matrix, Multi-AZ topology math, dedicated master sizing, EBS vs instance-
store selection, shard/replica heuristics, UltraWarm/cold storage lifecycle,
vector search collection sizing, configuration dependency graph.
references/provisioning-cli-commands.md — full copy-pasteable CLI
sequence for all provisioning steps, including managed cluster creation,
Serverless collection setup, vector search, snapshot registration, ISM
policies, CloudWatch alarms, and Terraform equivalents.
Domain
AWS CloudOps / OpenSearch Service Provisioning & Search Topology Design.
AWS documentation
1---2name: opensearch-domain-deployer3description: 'Provisions Amazon OpenSearch Service domains with production defaults: deployment type (managed cluster vs Serverless), instance type (t3.small.search dev to r6g.4xlarge.search production), data nodes vs dedicated masters vs UltraWarm vs cold storage, Multi-AZ 3-zone, EBS (gp3 default, io1 for high IOPS), encryption at-rest (KMS, must enable at creation) and in-transit (TLS), VPC-only vs public access, fine-grained access control (FGAC) with IAM or Cognito master user, snapshots (automated + manual to S3), shard and replica count, OpenSearch Serverless, vector search, streaming ingestion. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating an OpenSearch domain, choosing managed vs Serverless, designing Multi-AZ topology, sizing shards and instances, enabling FGAC, or generating provisioning CLI / IaC templates. Triggers: create OpenSearch, provision OpenSearch, OpenSearch Serverless, OpenSearch FGAC, UltraWarm, vector search.'4license: Apache-2.05compatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with opensearch, opensearchserverless, ec2, kms, iam, and cognito-idp access. Works with Terraform aws_opensearch_domain / aws_opensearchserverless_collection resources and CloudFormation AWS::OpenSearchService::Domain templates.'6metadata:7 source: https://skillmd.com/skills/jhkchan/opensearch-domain-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Analytics15 task_type: deploy16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 tags: aws, opensearch, elasticsearch, cloudops, deploy, analytics, search, provisioning, managed-cluster, serverless, multi-az, encryption, fgac, ultrawarm, vector-search22 dependencies: aws-orchestrator23 keywords: aws, opensearch, elasticsearch, cloudops, deploy, provisioning, search, analytics, domain, managed cluster, serverless, data nodes, dedicated master, ultrawarm, cold storage, multi-az, 3-zone, ebs, gp3, io1, encryption at rest, encryption in transit, tls, kms, vpc, public access, fine-grained access control, fgac, iam master user, cognito, snapshot, repository, shard count, replica count, vector search, streaming ingestion24 when_to_use: Invoke when the user wants to create a new OpenSearch Service domain (managed cluster or Serverless), design a Multi-AZ production topology with dedicated master nodes, size data nodes and shard count, enable fine-grained access control (FGAC), configure UltraWarm or cold storage for cost optimization, set up vector search collections, configure snapshot repositories, or generate provisioning CLI commands / IaC templates. Do NOT invoke for auditing existing domain posture (use opensearch-domain-auditor), or for non-OpenSearch search/analytics (Athena, CloudSearch, self-managed Elasticsearch on EC2).25---2627# OpenSearch Domain Deployer2829An AWS CloudOps agent skill that provisions Amazon OpenSearch Service30domains with correct defaults. The skill walks the operator through a3110-step provisioning procedure and emits a READY_TO_DEPLOY checklist with32verification commands.3334## Activation keywords3536create OpenSearch, provision OpenSearch, managed cluster, OpenSearch37Serverless, data nodes, dedicated master nodes, UltraWarm, cold storage,38Multi-AZ, 3-zone deployment, instance type, EBS storage, gp3, io1,39encryption at rest, encryption in transit, TLS, KMS, VPC access, public40access, fine-grained access control, FGAC, IAM master user, Cognito,41snapshot repository, shard count, replica count, vector search collection,42streaming ingestion.4344## Invocation contract (hard requirement)4546When this skill is invoked with a domain-provisioning request (domain47name, instance type, workload shape, region, or a partial configuration),48the agent MUST respond with the READY_TO_DEPLOY checklist defined in49"Output format" using the literal all-caps labels `DOMAIN:`, `VERDICT:`,50`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface with prose,51headings, or disclaimers — emit the block as the first lines of the response.5253## Mindset5455**One-line takeaway:** OpenSearch correctness is decided at creation56time. Encryption at rest, FGAC mode, VPC vs public access, and Multi-AZ57topology are impossible or disruptive to change later — treat each as a58one-way door and force an explicit decision before `create-domain`.5960Three misconceptions dominate OpenSearch misdesign:61- **"Pick the largest instance and scale down later."** OpenSearch charges62 per instance-hour regardless of utilization. Size based on storage +63 the shard-count heuristic (1 shard per 30-50 GB), not "we might need it."64- **"Public access with IP allowlist is fine for production."** An IP65 allowlist is a network control, not authentication. VPC-only with66 FGAC + IAM is the production baseline.67- **"Dedicated master nodes are optional."** Without dedicated masters,68 cluster-state changes consume CPU on data nodes — query latency spikes69 during recovery. Mandatory for > 10 data nodes or latency-sensitive workloads.7071## Quick navigation7273| Section | When to read |74|---|---|75| Prerequisites | Always — verify before provisioning |76| Step 1 — Deployment type | Managed cluster vs Serverless |77| Step 2 — Instance types | t3/r6g/m6g/c6g.search selection |78| Step 3 — Multi-AZ + dedicated masters | Production topology |79| Step 4 — Storage (EBS, instance) | gp3 vs io1 vs instance-store |80| Step 5 — Encryption | KMS at-rest, TLS in-transit |81| Step 6 — Network + FGAC | VPC vs public, IAM vs Cognito |82| Step 7 — Indexing (shards, replicas) | Shard count, replica count |83| Step 8 — Snapshots | Automated + manual to S3 |84| Step 9 — UltraWarm / cold storage | Tiered storage for cost |85| Step 10 — Serverless / vector search | Latest 2023-2026 features |86| NEVER do these things | Review before signing off |87| Output format | The literal checklist template |88| references/topology-and-indexing.md | Deep Multi-AZ + shard math |89| references/provisioning-cli-commands.md | Copy-pasteable CLI sequence |9091## Reasoning framework (why provisioning order matters)9293OpenSearch configurations have **dependency and immutability semantics**.94The four one-way doors decided at creation time:95961. **Encryption at rest** — MUST enable at creation. Cannot be added to97 an existing domain without new domain + reindex.982. **FGAC mode** (IAM vs Cognito) — chosen at creation. Switching modes99 requires full reindex via remote reindex.1003. **VPC vs public access** — cannot switch post-creation. No modify path.1014. **Multi-AZ topology** — requires node count multiple of 3. Adding a102 third AZ to a 2-AZ cluster requires disruptive node-count change.103104Additionally: instance type changes require blue-green deployment (multi-hour105shard migration). Shard count changes require `_split` or `_shrink` (disruptive).106107The full configuration dependency graph (which settings are immutable,108which silently downgrade, which enable downstream features) is in109`references/topology-and-indexing.md`.110111## Prerequisites (verify before provisioning)112113| Prerequisite | Why it matters | How to verify |114|---|---|---|115| AWS account with OpenSearch access | Required | `aws sts get-caller-identity` |116| Region selected | Domains are region-scoped | `aws configure get region` |117| Domain name unique in account-region | Name is immutable; endpoint derives from it | `aws opensearch describe-domain --domain-name <name>` |118| VPC ID + subnets in 3 AZs (Multi-AZ) | Multi-AZ requires 3 AZs | `aws ec2 describe-subnets` — confirm 3 distinct AZs |119| Security group with port 443 inbound | OpenSearch uses HTTPS | `aws ec2 describe-security-groups --group-ids <sg>` |120| KMS key ARN (if encryption with CMK) | Custom encryption requires CMK in same region | `aws kms describe-key --key-id <cmk-id>` |121| IAM role ARN for master user (if FGAC) | FGAC requires master user | `aws iam get-role --role-name <role>` |122| Cognito user pool + identity pool (if Cognito FGAC) | Required for Cognito-based FGAC | `aws cognito-idp describe-user-pool --user-pool-id <pool>` |123| S3 bucket + IAM role for manual snapshots | Manual snapshots require registered repository | `aws s3api head-bucket --bucket <bucket>` |124| Workload description (data size, query pattern) | Drives instance/shard/replica decisions | Captured in prompt |125126If any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`127and cite the specific gap.128129## Sizing heuristics (quick reference)130131Full detail in `references/topology-and-indexing.md`.132133**Shard count:** `ceil(total_data_size_gb / 30)` for write-heavy, `/ 50`134for read-heavy. Over-sharding small datasets wastes overhead; use 1 shard135for < 10 GB.136137**Storage capacity:** `total_storage = raw_data × (1 + replica_count) × 1.1`138(10% overhead + 15% free-space watermark). Required data nodes =139`ceil(total_storage / per_node_storage)`. Round UP to multiple of 3 for Multi-AZ.140141**Dedicated masters:** mandatory for > 10 data nodes. Type: `c6g.large.search`142for up to 15 data nodes; `c6g.2xlarge.search` for 15-30; `c6g.4xlarge.search` for 30+.143144**Heap:** 50% of instance RAM, capped at 31 GB (compressed oops boundary).145146## 10-step provisioning procedure147148### Step 1 — Deployment type: managed cluster vs Serverless (immutable)149150**Decision:**151- **Unpredictable/bursty workload** → OpenSearch Serverless (auto-scaling,152 pay-per-use). Does NOT support UltraWarm, cold storage, dedicated masters,153 or cross-cluster search.154- **Steady-state + predictable** → Managed cluster (full feature set).155- **Vector search only** → Serverless VECTORSEARCH collection.156- **Needs UltraWarm/cold storage** → Managed cluster (Serverless lacks tiered storage).157158### Step 2 — Instance types (managed cluster)159160| Family | Examples | Optimized for | Use when |161|---|---|---|---|162| `r6g.search` / `r7g.search` | r6g.large to r6g.4xlarge | Memory | **Production DEFAULT** |163| `c6g.search` | c6g.large to c6g.2xlarge | Compute | Aggregations, ML; dedicated masters |164| `m6g.search` | m6g.large to m6g.4xlarge | Balanced | Mixed workloads |165| `i3.search` | i3.large to i3.2xlarge | Instance storage (NVMe) | Very high IOPS; log analytics |166| `t3.search` | t3.small to t3.medium | Burst | **Dev/test ONLY** |167| Legacy (`t2`,`m3`,`m4`,`c4`,`r3`,`r4`,`i2`) | — | — | **DO NOT USE — end-of-life** |168169**Size by workload:**170- Dev/test: `t3.small.search` × 1 (no Multi-AZ).171- Small production (< 50 GB): `r6g.large.search` × 3.172- Mid production (50-500 GB): `r6g.2xlarge.search` × 3-6 (Multi-AZ).173- Large production (500 GB-5 TB): `r6g.4xlarge.search` × 6-12 + 3 dedicated masters.174- Very large (5+ TB): shard across domains OR use UltraWarm/cold storage.175176**NEVER use `t3.small.search` for production** — CPU credits deplete and177throttle under sustained traffic.178179### Step 3 — Multi-AZ + dedicated master nodes180181Multi-AZ (3-zone) is the primary resilience control. **Instance count must182be a multiple of 3.**183184- Enable `ZoneAwarenessEnabled=true` + `AvailabilityZoneCount=3`.185- OpenSearch places primary and replica shards in different AZs.186- A 3-node cluster with `replica=1` tolerates one AZ loss.187188**Dedicated masters** (3 — one per AZ):189- Mandatory for > 10 data nodes, latency-sensitive workloads (p99 < 100 ms),190 or frequent index creation.191- Master type: `c6g.large.search` (≤15 data nodes), `c6g.2xlarge.search`192 (15-30), `c6g.4xlarge.search` (30+).193- Masters are CPU-bound, not memory-bound. Use `c6g`, not `r6g`.194195**NEVER use a 2-AZ topology with odd node count** — uneven shard196distribution makes one AZ a SPOF.197198### Step 4 — Storage (EBS vs instance-store)199200| Volume type | IOPS | Use when |201|---|---|---|202| `gp3` (default) | 3,000 baseline, up to 16,000 | **DEFAULT CHOICE** — most production |203| `io1` | up to 64,000 provisioned | High-IOPS; consistent latency |204| `standard` (magnetic) | low | **DO NOT USE — legacy** |205206- EBS size: 10 GB - 6 TB (gp3). Plan for 15% free (write-block watermark at 85%).207- Instance-store (NVMe): `i3.search` only. Higher IOPS but ephemeral — data208 lost on instance failure. Use with `replica >= 1`.209210**Common mistake:** sizing EBS for raw data without the replica + overhead211multiplier. A 500 GB index with 1 replica needs 500 × 2 × 1.1 = 1.1 TB.212213### Step 5 — Encryption (at-rest + in-transit)214215**Encryption at rest:**216- **MUST enable at domain creation.** Cannot be added later.217- Uses AWS KMS. Default: AWS-managed key. For compliance: customer CMK.218219**Encryption in transit (TLS):**220- Recommended at creation. Can enable post-creation but triggers rolling221 node replacement disconnecting clients for 10-30 minutes.222- Use `Policy-Min-TLS-1-2-2019-07` (TLS 1.2 minimum). Never allow TLS 1.0/1.1.223224```bash225aws opensearch create-domain ... \226 --encryption-at-rest-options Enabled=true,KmsKeyId=arn:aws:kms:...:alias/<cmk> \227 --node-to-node-encryption-options Enabled=true \228 --domain-endpoint-options EnforceHTTPS=true,TLSSecurityPolicy=Policy-Min-TLS-1-2-2019-07229```230231### Step 6 — Network access + fine-grained access control (FGAC)232233**Network access:**234235| Mode | Use when |236|---|---|237| VPC-only | **PRODUCTION.** Network isolation; security group controls ingress. |238| Public | Dev/test only. IP allowlist is a network control, not authentication. |239240**FGAC modes (mutually exclusive — choose at creation):**241242| Mode | Master user | Use when |243|---|---|---|244| IAM master user | IAM role ARN | Programmatic access; AWS-native orgs |245| Cognito user pool | Cognito pool + identity pool | Human users; SSO; web-app dashboards |246| IP-only (no FGAC) | N/A | **DO NOT USE for production** |247248**Common mistake:** public access with IP allowlist for "production." Always249use VPC-only access with FGAC for production.250251### Step 7 — Indexing (shard count, replica count)252253- **Shard count:** apply the 30-50 GB per shard rule. Set at index creation254 via `"number_of_shards": N`. Change post-creation: `_split`/`_shrink`255 (disruptive).256- **Replica count:** default 1. Set via `"number_of_replicas": N`.257 Changeable at runtime (no disruption). Multi-AZ places replicas in258 different AZs.259260| Replica | Storage multiplier | Use when |261|---|---|---|262| 0 | 1x | Dev/test only (data loss on failure) |263| 1 | 2x | **Production standard** |264| 2 | 3x | High availability (rare; cost) |265266**NEVER over-shard a small dataset.** A 1 GB index with 5 shards wastes267overhead — use 1 shard.268269### Step 8 — Snapshots (automated + manual)270271- **Automated:** daily to AWS-managed S3. Retention 1-35 days (configurable).272 Used for point-in-time recovery to same or new domain.273- **Manual:** customer-managed S3 bucket. Requires "snapshot repository"274 registered via `PUT _snapshot/<repo>`. Used for long-term retention,275 cross-cluster migration, backup before upgrades.276277Full snapshot repository registration and restore CLI is in278`references/provisioning-cli-commands.md`.279280**NEVER rely on automated snapshots as the ONLY backup.** For long-term281retention or cross-region DR, configure manual snapshots.282283### Step 9 — UltraWarm and cold storage (managed cluster only)284285Serverless does NOT support these. Managed cluster only.286287- **UltraWarm:** read-only warm tier. ~50% cheaper than hot. Indices become288 READ-ONLY after migration. Hot→warm via ISM; warm→hot requires reindex.289- **Cold storage:** read-only archive on S3. ~80% cheaper. Recall takes290 minutes-hours. Requires UltraWarm enabled.291292**ISM lifecycle:** hot (active) → warm (7d) → cold (30d) → delete (365d).293294**NEVER use UltraWarm as a write target** — READ-ONLY. Writes must295complete on hot tier before ISM migrates.296297### Step 10 — OpenSearch Serverless / vector search / streaming ingestion298299- **OpenSearch Serverless:** auto-scaling, pay-per-use (OCU billing). No300 capacity management. Separate API (`opensearchserverless`).301- **Vector search collections:** `--type VECTORSEARCH`. Optimized for k-NN302 similarity search (HNSW, IVF). For RAG/generative AI workloads.303- **Streaming ingestion:** direct from Kinesis, MSK, or S3 without Lambda.304 Lower latency than Lambda-based ingestion.305- **Cross-cluster search:** connect multiple domains for federated search.306307**Common mistake:** provisioning a managed cluster for vector-search-only308workload. Serverless VECTORSEARCH is cheaper and simpler for pure k-NN.309310## NEVER do these things3113121. **NEVER use public access for a production OpenSearch domain.** Public313 access exposes the endpoint to internet scanning. VPC-only with FGAC + IAM.3143152. **NEVER forget to enable encryption at rest at domain creation.**316 Adding it later requires a new domain + full reindex + client repoint.3173183. **NEVER use `t3.small.search` for production.** CPU credits deplete319 under sustained traffic. Use `r6g.search` or `r7g.search`.3203214. **NEVER provision a 2-AZ topology with odd node count.** Multi-AZ322 requires 3 AZs and node count multiple of 3. Uneven allocation = SPOF.3233245. **NEVER skip dedicated master nodes for clusters > 10 data nodes.**325 Without dedicated masters, cluster-state updates spike query latency326 during recovery. Use 3 dedicated masters (one per AZ).327328Extended anti-patterns (JVM heap cap, TLS policy, IP-only FGAC, automated329snapshot reliance, FGAC mode switch, UltraWarm writes, EOL instances) are330documented in `references/topology-and-indexing.md`.331332## Error handling333334| Error | Cause | Fix |335|---|---|---|336| `ResourceAlreadyExistsException` | Domain name taken | Check existing config; update mutable settings or create new domain |337| Encryption-at-rest enable fails on existing domain | Cannot add post-creation | Create NEW domain with encryption, reindex via `_remote/reindex` |338| Multi-AZ create with uneven node count | `InstanceCount` not divisible by 3 | Round UP to next multiple of 3 |339| Dedicated master toggle during update | Blue-green deployment (1-4 hours) | Enable at creation; toggle requires maintenance window |340| `RepositoryMissingException` | Snapshot repo not registered | Register via `PUT _snapshot/<repo>` before taking snapshots |341| FGAC mode switch fails | IAM↔Cognito not supported via update | Create NEW domain with desired FGAC mode, reindex |342| Cluster stuck in `PROCESSING` | Blue-green on large cluster (1-4 hours) | `aws opensearch describe-domain --query 'DomainStatus.Processing'` — wait for false |343344## Output format345346```text347DOMAIN: <domain-or-collection-name>348VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING349CHECKLIST:350 [✓|✗] Deployment type: managed cluster | serverless351 [✓|✗] Instance type: <family>.<size>.search (data nodes)352 [✓|✗] Instance count: <N> data nodes (multiple of 3 for Multi-AZ)353 [✓|✗] Multi-AZ (3-zone): Enabled | Disabled354 [✓|✗] Dedicated master nodes: <N> × <family>.<size>.search | None355 [✓|✗] Storage: EBS <type> <size>GB | instance-store NVMe356 [✓|✗] Encryption at rest: Enabled (customer CMK <key-arn> | AWS-managed) | Disabled357 [✓|✗] Encryption in transit (TLS): Enabled (Policy-Min-TLS-1-2-2019-07) | Disabled358 [✓|✗] Network access: VPC-only (subnets: <ids>, SG: <sg-id> port 443) | Public (IP allowlist)359 [✓|✗] Fine-grained access control (FGAC): IAM master user (<role-arn>) | Cognito (<pool-id>) | Disabled360 [✓|✗] Master user: IAM role <arn> | Cognito user <username>361 [✓|✗] Shard count rule: 30-50 GB per shard applied362 [✓|✗] Replica count: <N> (tolerates <N> node losses)363 [✓|✗] Automated snapshots: Enabled (retention <N> days)364 [✓|✗] Manual snapshot repository: registered (S3 bucket <name>, role <arn>) | None365 [✓|✗] UltraWarm: Enabled (<N> × <type>) | Disabled366 [✓|✗] Cold storage: Enabled | Disabled367 [✓|✗] OpenSearch Serverless: Yes (collection type <type>) | No368VERIFICATION_COMMANDS:369 aws opensearch describe-domain --domain-name <name>370 aws opensearch describe-domain-config --domain-name <name>371 aws ec2 describe-security-groups --group-ids <sg-id>372 aws kms describe-key --key-id <cmk-id>373 aws iam get-role --role-name <master-role>374```375376### Worked example — production managed cluster with Multi-AZ377378```text379DOMAIN: prod-search380VERDICT: READY_TO_DEPLOY381CHECKLIST:382 [✓] Deployment type: managed cluster383 [✓] Instance type: r6g.2xlarge.search (data nodes)384 [✓] Instance count: 6 data nodes (2 per AZ × 3 AZs)385 [✓] Multi-AZ (3-zone): Enabled (us-east-1a/b/c)386 [✓] Dedicated master nodes: 3 × c6g.large.search (1 per AZ)387 [✓] Storage: EBS gp3 100GB per node (600 GB cluster capacity)388 [✓] Encryption at rest: Enabled (customer CMK alias/prod-opensearch-kms)389 [✓] Encryption in transit (TLS): Enabled (Policy-Min-TLS-1-2-2019-07)390 [✓] Network access: VPC-only (subnets: subnet-0aaa/0bbb/0ccc, SG: sg-search123 port 443)391 [✓] Fine-grained access control (FGAC): IAM master user (arn:aws:iam::123456789012:role/opensearch-master)392 [✓] Master user: IAM role arn:aws:iam::123456789012:role/opensearch-master393 [✓] Shard count rule: 30 GB per shard applied (17 shards for 500 GB indices)394 [✓] Replica count: 1 (tolerates 1 node loss per shard)395 [✓] Automated snapshots: Enabled (retention 14 days)396 [✓] Manual snapshot repository: registered (S3 bucket opensearch-snapshots-prod, role arn:aws:iam::123456789012:role/opensearch-snapshot)397 [✓] UltraWarm: Disabled (workload is search, not time-series)398 [✓] Cold storage: Disabled399 [✓] OpenSearch Serverless: No400VERIFICATION_COMMANDS:401 aws opensearch describe-domain --domain-name prod-search402 aws opensearch describe-domain-config --domain-name prod-search403 aws ec2 describe-security-groups --group-ids sg-search123404 aws kms describe-key --key-id alias/prod-opensearch-kms405 aws iam get-role --role-name opensearch-master406```407408## STRICT output contract409410This section codifies the exact output shape the eval harness asserts411against. Every invocation MUST produce output matching this contract or412the response is rejected.413414### Required output structure415416Every response MUST be a single block with these literal labels, in order,417as the first lines of the response (no preamble, no prose, no disclaimers):418419```text420DOMAIN: <domain-or-collection-name>421VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING422CHECKLIST:423 [✓|✗] Deployment type: managed cluster | serverless424 [✓|✗] Instance type: <family>.<size>.search (data nodes)425 [✓|✗] Instance count: <N> data nodes (multiple of 3 for Multi-AZ)426 [✓|✗] Multi-AZ (3-zone): Enabled | Disabled427 [✓|✗] Dedicated master nodes: <N> × <family>.<size>.search | None428 [✓|✗] Storage: EBS <type> <size>GB | instance-store NVMe429 [✓|✗] Encryption at rest: Enabled (customer CMK <key-arn> | AWS-managed) | Disabled430 [✓|✗] Encryption in transit (TLS): Enabled (Policy-Min-TLS-1-2-2019-07) | Disabled431 [✓|✗] Network access: VPC-only (subnets: <ids>, SG: <sg-id> port 443) | Public (IP allowlist)432 [✓|✗] Fine-grained access control (FGAC): IAM master user (<role-arn>) | Cognito (<pool-id>) | Disabled433 [✓|✗] Master user: IAM role <arn> | Cognito user <username>434 [✓|✗] Shard count rule: 30-50 GB per shard applied435 [✓|✗] Replica count: <N> (tolerates <N> node losses)436 [✓|✗] Automated snapshots: Enabled (retention <N> days)437 [✓|✗] Manual snapshot repository: registered (S3 bucket <name>, role <arn>) | None438 [✓|✗] UltraWarm: Enabled (<N> × <type>) | Disabled439 [✓|✗] Cold storage: Enabled | Disabled440 [✓|✗] OpenSearch Serverless: Yes (collection type <type>) | No441VERIFICATION_COMMANDS:442 aws opensearch describe-domain --domain-name <name>443 aws opensearch describe-domain-config --domain-name <name>444 aws ec2 describe-security-groups --group-ids <sg-id>445 aws kms describe-key --key-id <cmk-id>446 aws iam get-role --role-name <master-role>447```448449### FORBIDDEN output patterns4504511. **NEVER output READY_TO_DEPLOY without listing every checklist item452 with [✓] or [✗].** Every row must appear with an explicit status marker.453 The eval harness asserts a minimum row count.4544552. **NEVER omit the instance type recommendation.** Must specify the exact456 `.search`-suffixed type (e.g., r6g.large.search). "TBD" or "memory-optimized"457 is rejected.4584593. **NEVER recommend public access for production.** VPC-only is the460 production default. Only dev/test may use public, with explicit note.4614624. **NEVER emit a checklist without the encryption-at-rest status.**463 Encryption at rest is immutable after creation — omitting it leaves the464 operator blind to a one-way door decision.4654665. **NEVER substitute lowercase or markdown-styled labels for the literal467 all-caps `DOMAIN:`, `VERDICT:`, `CHECKLIST:`, `VERIFICATION_COMMANDS:`.**4684696. **NEVER preface the checklist with prose, headings, or disclaimers.**470 The `DOMAIN:` line must be the first line of the response.471472## Recent AWS features (2022-2026)473474- **OpenSearch Serverless (2022-2023):** Auto-scaling, pay-per-use. Separate475 API. Does NOT support UltraWarm, cold storage, dedicated masters.476- **Vector search collections (2023-2024):** Serverless `VECTORSEARCH`. k-NN477 similarity search (HNSW, IVF). For RAG/generative AI workloads.478- **Streaming ingestion (2023-2024):** Direct from Kinesis, MSK, or S3479 without Lambda. Lower latency than Lambda-based ingestion.480- **Cross-cluster search (2023-2024):** Connect multiple domains for481 federated search via `connections` API.482- **gp3 EBS default (2022-2023):** gp3 replaces gp2. Higher baseline IOPS483 (3,000 vs gp2's 250). Cheaper and faster.484- **Graviton (g-series) instance types (2022-2024):** `r6g`, `c6g`, `m6g`485 offer ~20% better price/performance over Intel. Default for new clusters.486- **OpenSearch 2.x (2022-2024):** Anomaly detection, k-NN boosts, session-487 based search, streaming ingestion. Use OpenSearch 2.11+.488489## References490491- `references/topology-and-indexing.md` — managed vs Serverless feature492 matrix, Multi-AZ topology math, dedicated master sizing, EBS vs instance-493 store selection, shard/replica heuristics, UltraWarm/cold storage lifecycle,494 vector search collection sizing, configuration dependency graph.495- `references/provisioning-cli-commands.md` — full copy-pasteable CLI496 sequence for all provisioning steps, including managed cluster creation,497 Serverless collection setup, vector search, snapshot registration, ISM498 policies, CloudWatch alarms, and Terraform equivalents.499500## Domain501502AWS CloudOps / OpenSearch Service Provisioning & Search Topology Design.503504## AWS documentation505506- **Amazon OpenSearch Service Developer Guide** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html507- **Managed domains** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html508- **OpenSearch Serverless** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless.html509- **Multi-AZ domains** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html510- **Dedicated master nodes** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-dedicatedmasternodes.html511- **Encryption at rest** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/encryption-at-rest.html512- **Fine-grained access control** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html513- **UltraWarm storage** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ultrawarm.html514- **Cold storage** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cold-storage.html515- **Sizing domains** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/sizing-domains.html516- **Vector search** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/knn.html