Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.2 KB

File metadata and controls

43 lines (30 loc) · 1.2 KB

S3 to SQS

A Lambda function that receives S3 object-creation events, transforms each record into a typed ProcessedMessage, and publishes it to an SQS queue.

Architecture

The template sets up:

  1. Amazon S3 bucket: Generates events when objects are created.
  2. AWS Lambda function: Transforms S3 event metadata into ProcessedMessage objects.
  3. Amazon SQS queue: Receives the processed messages.

Architecture diagram showing Amazon S3 triggering AWS Lambda to send a message to Amazon SQS.

Code

Deployment

Deploy the stack using:

make deploy STACK=s3

ProcessedMessage model

Field Type Description
bucket string S3 bucket name
key string S3 object key
event_time string ISO-8601 event timestamp
source string Origin event source (s3)

Environment variables

Variable Description
SQS_QUEUE_URL SQS queue URL to publish processed messages to
SERVICE_NAME Powertools service name
LOG_LEVEL Log level for the Lambda Logger