processing-controller

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Lambda function responsible for initializing the bronze ingestion pipeline by registering metadata about new raw files in the ProcessingControl table.

Triggered by S3 Event Notifications, it performs the following actions:

  • Decompresses the uploaded .csv.gz or .json.gz file
  • Counts the number of records (CSV or line-delimited JSON)
  • Computes a SHA-256 checksum of the uncompressed content
  • Estimates the file's compute target (Lambda or ECS)
  • Stores a new ProcessingControl entry in DynamoDB, including record count, format, checksum, file size, and destination layer

This function ensures that all incoming files are tracked, validated, and prepared for downstream ingestion into the bronze layer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL