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

/managed-ingestion-service

@c4f7b1e
Run it yourself

Ingest documents at scale into Amazon OpenSearch using OpenSearch Ingestion Service (OSIS) pipelines. Upload pre-generated JSONL chunks to S3 and OSIS indexes them — optionally using semantic_enrichment in the sink to create the index with ASE automatically. Cloud ingestion — uploading raw PDF/DOCX and letting document_extractor parse them in the cloud — is available via private beta. Use this skill when the user wants to ingest documents into a cloud OpenSearch domain or collection, process documents at full volume beyond local limits, or set up an OSIS pipeline. Activate even if the user says OSIS, ingestion pipeline, document extraction, S3 ingestion, managed ingestion, or cloud processing.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

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

No alerts4mo3 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill facilitates the setup and management of Amazon OpenSearch Ingestion Service (OSIS) pipelines. It utilizes standard AWS CLI commands to configure cloud infrastructure, manage S3 data transfers, and establish required IAM permissions within the user's own AWS account environment. No malicious patterns or security risks were identified.

  • Socket4mo

    No alerts

  • Snyk4mo

    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": "3.0"
}
Other metadata
compatibility
Requires AWS credentials, an ACTIVE Amazon OpenSearch Service domain (v2.19+) or Serverless collection endpoint, and an S3 bucket for source documents or chunks.

README badge

README badge for opensearch-project/opensearch-agent-skills/managed-ingestion-service