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

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

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

aosdomain-01-provision.md

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

Amazon OpenSearch Service Domain — Step 1: Provision Domain

This guide covers creating and configuring an Amazon OpenSearch Service Domain (managed cluster). Follow it after prepare_aws_deployment() returns deployment_target: "domain".

Prerequisites

Before starting:

  1. Read .opensearch-deploy-state.json for current deployment state
  2. Confirm AWS credentials are valid: aws sts get-caller-identity (via AWS API MCP)
  3. Verify required MCP servers are connected: awslabs.aws-api-mcp-server, opensearch-mcp-server
  4. Save the AWS account ID and principal ARN to the state file

State Input

From .opensearch-deploy-state.json:

  • deployment_target: "domain"
  • search_strategy: "agentic" or other

Step 1: Get Latest OpenSearch Version

Before creating the domain, fetch the latest available OpenSearch version:

aws opensearch list-versions

This returns all supported versions. Pick the latest OpenSearch_X.Y version (highest major, then minor). Ignore Elasticsearch_* versions.

For agentic search, confirm the selected version is 3.3 or higher.

Step 2: Create Domain

Use the AWS API MCP server with the version from Step 1:

aws opensearch create-domain
  --domain-name <domain-name>
  --engine-version <latest-version-from-step-1>
  --cluster-config InstanceType=t3.medium.search,InstanceCount=1
  --ebs-options EBSEnabled=true,VolumeType=gp3,VolumeSize=100
  --node-to-node-encryption-options Enabled=true
  --encryption-at-rest-options Enabled=true
  --domain-endpoint-options EnforceHTTPS=true

For production, use larger instances (r6g.large.search, 3+ data nodes, 3 dedicated leaders).

Step 3: Enable Fine-Grained Access Control

aws opensearch update-domain-config
  --domain-name <domain-name>
  --advanced-security-options Enabled=true,InternalUserDatabaseEnabled=true,MasterUserOptions={MasterUserName=admin,MasterUserPassword=<strong-password>}

Set up:

  • Master user credentials
  • Role-based access control

Step 4: Configure Network Access

Public access (development):

  • Set IP-based access policies
  • Use fine-grained access control

VPC access (production):

  • Deploy within VPC, configure security groups

Step 5: Wait for Domain Active

Poll until domain is active (typically 10-15 minutes):

aws opensearch describe-domain --domain-name <domain-name>

Wait for:

  • Processing: false
  • DomainStatus.Endpoint: available

State Output

Update .opensearch-deploy-state.json:

{
  "step_completed": "provision-domain",
  "aws_account_id": "<from sts get-caller-identity>",
  "aws_region": "<configured region>",
  "principal_arn": "<from sts get-caller-identity>",
  "resource_name": "<domain-name>",
  "resource_endpoint": "<domain-endpoint-url>"
}

Next Step

Proceed to Domain Deploy Search.

Source: SKILL.md on GitHub

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.

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides comprehensive automation for deploying Amazon OpenSearch Service and Serverless infrastructure on AWS. It uses standard AWS CLI commands for provisioning and fetches specialized MCP servers from trusted organizations and well-known service domains. The skill follows security best practices such as mandatory credential verification and explicit IAM role configurations.

  • Socket1mo

    1 alert: gptAnomaly

  • 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 4 months ago
metadata
{
  "author": "opensearch-project",
  "version": "2.0"
}
Other metadata
compatibility
Requires AWS credentials (IAM role or access keys), awslabs.aws-api-mcp-server, and opensearch-mcp-server. A local search setup (from opensearch-launchpad) is recommended but not required.

README badge

README badge for opensearch-project/opensearch-agent-skills/aws-setup