fix(conversion): stop EventBridge infinite loop on PDF uploads
Replace 3 separate EventBridge rules (docx/doc/pdf) with single rule scoped to documents/ prefix only. Previous rules used OR semantics on prefix+suffix - converted-pdfs/foo.pdf matched the .pdf suffix rule, causing Lambda to re-trigger on every PDF it wrote. Added guard in handler to reject keys outside documents/ as defense in depth. Also upgrades base image to node22 (26.2-node22-x86_64).
| Repository | dropthejase/louis |
|---|---|
| Author | Jason Lee <12leeejk2@gmail.com> |
| Authored | |
| Parents | 720650fc |
| Stats | 3 files changed , +15 , -30 |
| Part of | LibreOffice conversion Lambda (DOCX↔PDF) wired via EventBridge |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-8afab465.md
from inside the repo you want the change in.