S3 Event Processing

Step 1: Create the Processor Function

module "s3_processor" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/lambda-function/aws"
  version = "3.1.0"

  function_name = "s3-processor"
  handler       = "main.handler"
  runtime       = "python3.12"
  source_path   = "./src/processor"
  timeout       = 300
  memory_size   = 512
}

Step 2: Configure S3 Event Notification

Add S3 bucket notification to trigger the function.

Step 3: Test the Integration

Upload a file to S3 and verify the Lambda processes it.