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.

aossaoss-nextgen-provisioningDEPROVISION.md

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

Deprovision (Teardown)

Companion file for the AOSS NextGen provisioning skill. Read this when user selects Flow 5.


Flow 5: Deprovision

Steps

1. Collect region:

Ask the user for their AWS region.

2. List existing resources:

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

Display all collection groups (with numberOfCollections) and collections as a numbered list.

3. User selects teardown scope:

Ask:

What would you like to delete?

1. A specific collection only
2. A collection group and all its collections
3. Full teardown (all groups + collections + associated policies)

4. If deleting a specific collection:

Ask which collection. Then:

aws opensearchserverless delete-collection --cli-input-json '{
  "id": "<collection-id>"
}' --region <region>

5. If deleting a collection group (and its collections):

First, identify collections in that group from the list-collections output (check collectionGroupName field).

Show confirmation:

The following resources will be deleted:
  - Collection group: <group-name> (id: <group-id>)
    - Collection: <coll-name> (id: <coll-id>)
    [... for each collection in the group]
  - Encryption policy: <name>-enc-policy (if exists)
  - Network policy: <name>-net-policy (if exists)

Type the collection group name to confirm deletion:

Wait for user to type the exact group name. If it doesn't match, abort.

Then execute in order:

a. Delete each collection:

aws opensearchserverless delete-collection --cli-input-json '{
  "id": "<collection-id>"
}' --region <region>

b. Poll until collections are deleted (every 10 seconds, max 5 minutes):

aws opensearchserverless batch-get-collection --ids <id1> <id2> --region <region>

Deletion is complete when EITHER:

  • The collection appears in collectionErrorDetails with "errorCode": "NOT_FOUND", OR
  • The collectionDetails array is empty for all requested IDs

Do NOT look for a "DELETED" status — AWS removes the collection entirely and returns NOT_FOUND.

If timeout (5 minutes), inform user and stop.

c. Delete collection group:

aws opensearchserverless delete-collection-group --cli-input-json '{
  "id": "<group-id>"
}' --region <region>

d. Delete associated security policies (if they exist and match the naming pattern):

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

aws opensearchserverless delete-security-policy --cli-input-json '{
  "type": "network",
  "name": "<name>-net-policy"
}' --region <region>

6. If full teardown:

Same as option 5 but for ALL groups. Show full confirmation list and require typed confirmation.

Success Output

Report what was deleted and confirm cleanup is complete.

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