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-setupaossaoss-nextgen-provisioningADVANCED.md

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

Advanced Provisioning & Add to Existing Group

Companion file for the AOSS NextGen provisioning skill. Read this when user selects Flow 2 or Flow 4.


Flow 2: Advanced Provisioning

Step 1: Preset Selection

Ask the user:

Choose a preset:

1. Standard — Auto-scaling OCUs, public access, AWS-owned encryption key
2. Prod — Explicit OCU limits, VPC-only access, customer-managed KMS key

Step 2: Preset Values

Display:

Parameter Standard Prod
Standby replicas ENABLED ENABLED
Min indexing OCUs (auto) 4
Max indexing OCUs (auto) 16
Min search OCUs (auto) 4
Max search OCUs (auto) 16
Network access Public VPC
Encryption AWS-owned Customer CMK
Vector acceleration DISABLED DISABLED

Note: Standby replicas is always ENABLED for NextGen and cannot be overridden. Note: OCU values must be 1, 2, 4, 8, 16, or any multiple of 16. Note: Vector acceleration requires account-level enablement — if it fails with "not supported for account", proceed without it.

Ask: "Would you like to override any of these values? If so, tell me which ones and the new values."

Overridable parameters:

  • Capacity limits (min/max indexing/search OCUs — valid values: 1, 2, 4, 8, 16, 32, 48, 64, 80, 96)
  • Network access (Public or VPC)
  • Encryption (AWS-owned or Customer CMK ARN)

Step 3: Collect Required Inputs

Collect:

  1. Collection name — 3-32 chars, lowercase, alphanumeric + hyphens, starts with letter
  2. Collection type — SEARCH or VECTORSEARCH
  3. Region — AWS region
  4. VPC endpoint ID — only if network access = VPC
  5. KMS key ARN — only if encryption = Customer CMK

Step 4: Execution

1. Create encryption policy:

If AWS-owned key:

aws opensearchserverless create-security-policy --cli-input-json '{
  "type": "encryption",
  "name": "<name>-enc-policy",
  "policy": "{\"Rules\":[{\"ResourceType\":\"collection\",\"Resource\":[\"collection/<name>\"]}],\"AWSOwnedKey\":true}"
}' --region <region>

If Customer CMK:

aws opensearchserverless create-security-policy --cli-input-json '{
  "type": "encryption",
  "name": "<name>-enc-policy",
  "policy": "{\"Rules\":[{\"ResourceType\":\"collection\",\"Resource\":[\"collection/<name>\"]}],\"AWSOwnedKey\":false,\"KmsARN\":\"<kms-key-arn>\"}"
}' --region <region>

2. Create network policy:

If Public access:

aws opensearchserverless create-security-policy --cli-input-json '{
  "type": "network",
  "name": "<name>-net-policy",
  "policy": "[{\"Description\":\"Public access for <name>\",\"Rules\":[{\"ResourceType\":\"dashboard\",\"Resource\":[\"collection/<name>\"]},{\"ResourceType\":\"collection\",\"Resource\":[\"collection/<name>\"]}],\"AllowFromPublic\":true}]"
}' --region <region>

If VPC access:

aws opensearchserverless create-security-policy --cli-input-json '{
  "type": "network",
  "name": "<name>-net-policy",
  "policy": "[{\"Description\":\"VPC access for <name>\",\"Rules\":[{\"ResourceType\":\"dashboard\",\"Resource\":[\"collection/<name>\"]},{\"ResourceType\":\"collection\",\"Resource\":[\"collection/<name>\"]}],\"AllowFromPublic\":false,\"SourceVPCEs\":[\"<vpc-endpoint-id>\"]}]"
}' --region <region>

3. Create collection group:

If Standard preset (no capacity limits):

aws opensearchserverless create-collection-group \
  --name <name>-group \
  --standby-replicas ENABLED \
  --generation NEXTGEN \
  --region <region>

If Prod preset or with capacity overrides:

aws opensearchserverless create-collection-group \
  --name <name>-group \
  --standby-replicas ENABLED \
  --generation NEXTGEN \
  --capacity-limits '{"minIndexingCapacityInOCU":<min-idx>,"maxIndexingCapacityInOCU":<max-idx>,"minSearchCapacityInOCU":<min-srch>,"maxSearchCapacityInOCU":<max-srch>}' \
  --region <region>

4. Create collection:

aws opensearchserverless create-collection --cli-input-json '{
  "name": "<name>",
  "type": "<TYPE>",
  "collectionGroupName": "<name>-group"
}' --region <region>

5. Optional — Data access policy:

Same as Flow 1 in SKILL.md (ask if user wants to set up data access policy, collect principal ARN if yes).

Success Output

Same as Flow 1 — report group ID, collection ID, ARN, region, and status check command.


Flow 4: Add Collection to Existing Group

Steps

1. Collect region:

Ask the user for their AWS region.

2. List existing collection groups:

aws opensearchserverless list-collection-groups --region <region>

Display the collectionGroupSummaries array as a numbered list showing: group name, ID, numberOfCollections, and capacityLimits. If no groups exist, inform the user and suggest using Flow 1 or Flow 2 instead.

3. User selects group:

Ask which collection group they want to add the collection to.

4. Check policies:

Before creating the collection, verify that encryption and network policies exist that cover the new collection name.

First list policies:

aws opensearchserverless list-security-policies --type encryption --region <region>

Then for each policy, get its details to check the resource pattern:

aws opensearchserverless get-security-policy --cli-input-json '{
  "type": "encryption",
  "name": "<policy-name>"
}' --region <region>

Check if any policy's Resource array includes collection/<new-collection-name> or a wildcard pattern like collection/* that matches. Repeat for network policies (type network).

If no matching policies exist, warn the user and offer to create them (same commands as Flow 1 steps 1-2 in SKILL.md).

5. Collect inputs:

  • Collection name — 3-32 chars, lowercase, alphanumeric + hyphens, starts with letter
  • Collection type — SEARCH or VECTORSEARCH

6. Create collection:

aws opensearchserverless create-collection --cli-input-json '{
  "name": "<name>",
  "type": "<TYPE>",
  "collectionGroupName": "<selected-group-name>"
}' --region <region>

7. Optional — Data access policy:

Same as Flow 1 in SKILL.md.

Success Output

Report collection name, ID, ARN, which group it was added to, and status check command.

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