

| Field | Value |
|---|---|
| Name | docuflow-dev-ingestion-s3-object-created-rule |
| Description | Route S3 Raw ObjectCreated events to DocuFlow processing SQS queue. |
| Event bus | default |
| Rule type | Rule with an event pattern |

{
"source": ["aws.s3"],
"detail-type": ["Object Created"],
"detail": {
"bucket": {
"name": ["docuflow-dev-raw-[accountId]-ap-southeast-1"]
},
"object": {
"key": [
{
"prefix": "raw/"
}
]
}
}
}

| Field | Selection |
|---|---|
| Target type | AWS service |
| Select a target | SQS queue |
| Queue | docuflow-dev-ingestion-processing-queue |
| Input | Matched event |

docuflow-dev-ingestion-eventbridge-sqs-role, Configure tags and click Review and create.

Step 1: Upload a test file to the correct prefix raw/
docuflow-dev-raw-[accountId]-ap-southeast-1rawraw folder, create: user-demouser-demo folder, create: doc-manual-001

doc-manual-001 folder, click Upload and upload a PDF/JPG/PNG file. Name the file: original.pdf
Step 2: Poll message in SQSdocuflow-dev-ingestion-processing-queue


{
"source": "aws.s3",
"detail-type": "Object Created",
"detail": {
"bucket": {
"name": "docuflow-dev-raw-[accountId]-ap-southeast-1"
},
"object": {
"key": "raw/user-demo/doc-manual-001/original.pdf"
}
}
}
