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-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

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