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.

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

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