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

Build search applications and query log analytics data with OpenSearch. Use this skill when the user mentions OpenSearch, search app, index setup, search architecture, semantic search, vector search, hybrid search, BM25, dense vector, sparse vector, agentic search, RAG, embeddings, KNN, PDF ingestion, document processing, or any related search topic. Also use for log analytics and observability — when the user wants to set up log ingestion, query logs with PPL, analyze error patterns, set up index lifecycle policies, investigate traces, or check stack health. Activate even if the user says log analysis, Fluent Bit, Fluentd, Logstash, syslog, traceId, OpenTelemetry, or log analytics without mentioning OpenSearch.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

cloudmanaged-ingestion-serviceiam-setup.md

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

IAM Role Setup (if needed)

If the user does not have an existing OSIS role:

Create role with trust policy:

aws iam create-role \
  --role-name <role-name> \
  --assume-role-policy-document '{
    "Version": "2012-10-17",
    "Statement": [{
      "Effect": "Allow",
      "Principal": {"Service": "osis-pipelines.amazonaws.com"},
      "Action": "sts:AssumeRole"
    }]
  }'

Attach S3 read permission:

aws iam put-role-policy \
  --role-name <role-name> \
  --policy-name S3ReadAccess \
  --policy-document '{
    "Version": "2012-10-17",
    "Statement": [{
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:GetBucketLocation", "s3:ListBucket"],
      "Resource": ["arn:aws:s3:::<bucket>", "arn:aws:s3:::<bucket>/*"]
    }]
  }'

Attach OpenSearch write permission (for AOSS):

aws iam put-role-policy \
  --role-name <role-name> \
  --policy-name AOSSWriteAccess \
  --policy-document '{
    "Version": "2012-10-17",
    "Statement": [{
      "Effect": "Allow",
      "Action": [
        "aoss:BatchGetCollection",
        "aoss:APIAccessAll",
        "aoss:CreateIndex",
        "aoss:GetSecurityPolicy",
        "aoss:CreateSecurityPolicy",
        "aoss:UpdateSecurityPolicy"
      ],
      "Resource": "*"
    }]
  }'

Attach OpenSearch write permission (for AOS):

aws iam put-role-policy \
  --role-name <role-name> \
  --policy-name AOSWriteAccess \
  --policy-document '{
    "Version": "2012-10-17",
    "Statement": [{
      "Effect": "Allow",
      "Action": [
        "es:DescribeDomain",
        "es:ESHttpHead",
        "es:ESHttpGet",
        "es:ESHttpPut",
        "es:ESHttpPost"
      ],
      "Resource": "arn:aws:es:<region>:<account-id>:domain/<domain-name>/*"
    }]
  }'

Why extra permissions for semantic_enrichment? The ASE sink creates the index itself and manages ML resources. For AOSS: needs aoss:CreateIndex, aoss:GetSecurityPolicy, aoss:CreateSecurityPolicy, aoss:UpdateSecurityPolicy. For AOS: needs es:CreateIndex (v2.19+). A plain OSIS sink only needs basic write permissions.

Update AOSS data access policy (AOSS only) — add the OSIS role as a principal:

Step 1: Get the current policy (version + body):

aws opensearchserverless get-access-policy --type data \
  --name <collection-name>-access-policy --region <region>

Note policyVersion from the response — required for the update call.

Step 2: Merge the OSIS role into the existing policy.

Inspect the current policy JSON from Step 1. Add <osis-role-arn> to the existing Principal array. If model and agent ResourceType rules are missing, add them (required for semantic_enrichment). Do NOT replace the entire policy — preserve all existing rules and principals.

The merged policy must include at minimum:

"Rules": [
  {"Resource": ["collection/<collection-name>"], "Permission": ["aoss:*"], "ResourceType": "collection"},
  {"Resource": ["index/<collection-name>/*"], "Permission": ["aoss:*"], "ResourceType": "index"},
  {"Resource": ["model/<collection-name>/*"], "Permission": ["aoss:*"], "ResourceType": "model"},
  {"Resource": ["agent/<collection-name>/*"], "Permission": ["aoss:*"], "ResourceType": "agent"}
]

Step 3: Update with the merged policy:

aws opensearchserverless update-access-policy --type data \
  --name <collection-name>-access-policy \
  --policy-version "<current-version>" \
  --policy '<merged-policy-json>' --region <region>

Important: Preserve existing rules and principals. Only append the OSIS role ARN to the existing Principal array. Wait ~30 seconds for propagation.

model / agent ResourceTypes are required for semantic_enrichment on AOSS. ASE deploys a sparse model server-side, so the data access policy must grant model (and agent, used for agentic search) in addition to collection + index.

After changing the OSIS role's IAM permissions, stop and start the pipeline. OSIS caches the assumed-role credentials:

aws osis stop-pipeline  --pipeline-name <pipeline-name> --region <region>   # wait for STOPPED
aws osis start-pipeline --pipeline-name <pipeline-name> --region <region>

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 alert3d4 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill provides a comprehensive set of tools for OpenSearch development, including data ingestion, deployment to AWS/Aiven, and observability analytics. It implements robust security measures such as SSRF protection for remote data loading. Potential security considerations include the ingestion of unstructured data (Indirect Prompt Injection surface) and the transmission of feedback to a third-party domain.

  • Socket3d

    5 alerts: gptSecurity, gptAnomaly

  • Snyk5d

    Risk: CRITICAL · 3 issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

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
compatibility
Requires Docker and uv. AWS deployment requires AWS credentials.
metadata
{
  "author": "opensearch-project",
  "version": "2.0"
}

README badge

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