
Ingest JSON objects from Amazon S3 into Amazon OpenSearch Serverless using an Amazon OpenSearch Ingestion (OSIS) pipeline.
s3:ObjectCreated notifications to an Amazon SQS queue. The pipeline polls the queue, reads each new object, parses every line into a document with parse_json, and writes it to the s3-logs index. Documents that fail to index go to a separate dead-letter S3 bucket, so they don't trigger the pipeline again. The template needs no application code.aws osis stop-pipeline when you're not using it. The collection is in a collection group with a minimum of 0 OCUs, so it scales to zero and stops billing for compute after 10 minutes with no requests. The network policy allows public access for the demo; use a VPC endpoint for production.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/s3-opensearch-serverless-osis/samsam deploy --capabilities CAPABILITY_NAMED_IAM --guidedsam delete.