Index of every page on this site: llms.txt
All skills
Run it yourself

Deploy OpenSearch search applications to managed cloud providers. Use this skill when the user wants to provision an OpenSearch domain or serverless collection on AWS, provision a managed OpenSearch service on Aiven, deploy search configurations, set up Bedrock connectors, configure IAM roles for OpenSearch, or migrate a local setup to a managed OpenSearch. Activate even if the user says AOS, AOSS, OpenSearch Service, serverless collection, Bedrock connector, SigV4, AWS deployment, Aiven, or managed OpenSearch.

Use this Skill: https://skilld.dev/gh/opensearch-project/opensearch-agent-skills/cloud

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

aws-setupaosdomain-02-deploy-search.md

≈978 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Amazon OpenSearch Service Domain — Step 2: Deploy Search Configuration

This guide covers migrating index configuration, deploying ML models, and creating pipelines on the OpenSearch domain.

State Input

From .opensearch-deploy-state.json:

  • resource_endpoint: domain endpoint URL
  • search_strategy: determines which components to deploy

From prepare_aws_deployment() output:

  • local_config.text_fields: fields to configure
  • plan_summary.solution: full architecture plan

Step 1: Migrate Index Configuration

Using opensearch-mcp-server:

  1. Create the index on the domain endpoint with mappings from the local setup
  2. Include all field mappings, settings, and analyzers
  3. Configure replicas for high availability (1-2 replicas)
PUT <domain-endpoint>/<index-name>
{
  "settings": { ... from local config ... },
  "mappings": { ... from local config ... }
}

Update state: "index_name": "<index-name>"

Step 2: Deploy ML Models (if semantic/hybrid search)

For search strategies that use embeddings (dense vector, hybrid, neural sparse):

Deploy pretrained models from OpenSearch model repository:

POST <domain-endpoint>/_plugins/_ml/models/_register?deploy=true
{
  "name": "huggingface/sentence-transformers/all-MiniLM-L12-v2",
  "version": "1.0.1",
  "model_format": "TORCH_SCRIPT"
}

Or deploy remote Bedrock models (see Domain Agentic Setup Step 1-2 for IAM role and connector setup pattern).

Test model inference:

POST <domain-endpoint>/_plugins/_ml/models/<model-id>/_predict
{
  "parameters": { "inputText": "hello world" }
}

Update state: "model_id": "<model_id>"

Step 3: Create Ingest Pipelines

Recreate ingest pipelines from local setup:

PUT <domain-endpoint>/_ingest/pipeline/<pipeline-name>
{
  "description": "Embedding pipeline",
  "processors": [{
    "text_embedding": {
      "model_id": "<model_id>",
      "field_map": { "<text-field>": "<vector-field>" }
    }
  }]
}

Attach pipeline to index:

PUT <domain-endpoint>/<index-name>/_settings
{ "index.default_pipeline": "<pipeline-name>" }

Update state: "ingest_pipeline_name": "<pipeline-name>"

Step 4: Create Search Pipelines (if applicable)

For hybrid search, create normalization pipeline:

PUT <domain-endpoint>/_search/pipeline/<search-pipeline-name>
{
  "phase_results_processors": [{
    "normalization-processor": {
      "normalization": { "technique": "min_max" },
      "combination": { "technique": "arithmetic_mean", "parameters": { "weights": [0.3, 0.7] } }
    }
  }]
}

Update state: "search_pipeline_name": "<search-pipeline-name>"

Step 5: Index Sample Documents

  1. Use the same sample documents from Phase 1
  2. Index test documents to verify the setup
  3. Test search queries appropriate to the strategy
  4. Verify embeddings and pipeline processing

State Output

Update .opensearch-deploy-state.json:

{
  "step_completed": "deploy-search",
  "index_name": "<index-name>",
  "model_id": "<if created>",
  "ingest_pipeline_name": "<if created>",
  "search_pipeline_name": "<if created>"
}

Next Step

  • For agentic search: Proceed to Domain Agentic Setup
  • For all other strategies: Deployment complete. Connect the Search UI and provide access information.

Connect Search UI to AWS Endpoint

Call connect_search_ui_to_endpoint(
  endpoint="<domain-endpoint>",
  port=443,
  use_ssl=true,
  username="<master-user>",
  password="<master-password>",
  index_name="<index-name>"
)

The UI header badge will change from "Local" to "AWS Cloud" with a green connection indicator.

Access Information (non-agentic)

Give the user:

  • Domain endpoint URL
  • Domain ARN
  • OpenSearch Dashboards URL
  • Master user credentials (securely)
  • Sample search queries
  • Search Builder UI URL (already connected to AWS endpoint)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill is a navigational index and configuration guide for deploying OpenSearch to cloud environments like AWS and Aiven. It contains no executable code or malicious patterns.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at c4f7b1e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 6 days ago
metadata
{
  "author": "opensearch-project",
  "version": "2.0"
}
Other metadata
compatibility
AWS deployment requires AWS credentials (IAM role or access keys). Aiven deployment requires the Aiven MCP server and an Aiven API token.

README badge

README badge for opensearch-project/opensearch-agent-skills/cloud