Alpha Version: You are viewing the ALPHA documentation. This is an experimental version and may contain breaking changes.
Skip to main content

Task — Local

Source: reventless-local/src/adapter/Task/LocalTaskBucket.res

AWS equivalent: Task → S3

How It Works

The make function returns a dummy resource (no actual storage bucket is created). The connect function is a no-op.

makeHandler wraps a Task.bucketCallback and extracts eventName and key fields from the incoming JSON, simulating S3 event notifications.

Operations

OperationDescription
makeReturns a dummy resource with the task name
connectNo-op (no Lambda-to-S3 wiring needed)
makeHandlerExtracts eventName and key from JSON, calls the callback

Key Differences from AWS

AspectLocalAWS
StorageNo actual storageS3 bucket with CORS
EventsManual JSON with eventName/key fieldsS3 ObjectCreated/ObjectRemoved events
Lambda triggerDirect function callS3 → Lambda event subscription
IAMNonePer-bucket read/write policies