
A scheduled Lambda uses key-based SSH (Paramiko) to list and pull new files from the partner’s SFTP into an S3 raw bucket (e.g., `vendorA/2025/10/12/*.csv.gz`). It validates naming and a few sanity checks, routes failures to a reject/ prefix, and triggers a Redshift COPY from S3 into staging tables using the Redshift Data API (or a small Step Functions task). After a successful load, files move to history/ for audit. EventBridge handles cadence; Secrets Manager stores SFTP creds and DB auth.