Index of every page on this site: llms.txt
All skills
opensearch-project avatar

/aoss-nextgen-provisioning

@c4f7b1e
Run it yourself

Use when provisioning or deprovisioning OpenSearch Serverless collections, creating collection groups, setting up AOSS NextGen, or tearing down AOSS resources

  • 4 files
  • 21.5 KB
  • Updated 4 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/opensearch-project/opensearch-agent-skills/aoss-nextgen-provisioning

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

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

No third-party reports yet.

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

README badge

README badge for opensearch-project/opensearch-agent-skills/aoss-nextgen-provisioning