mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
CloudFormation's ZipFile property contains raw source code (JS, Python, etc.), but LambdaService expects Code.ZipFile to be a base64-encoded zip archive per the Lambda REST API contract. Passing raw source directly caused every inline Lambda to land in CREATE_FAILED with "Illegal base64 character". Fix: added sourceToZipBase64() that wraps the raw source in a ZipEntry (filename derived from the Handler property and runtime extension — .js for Node, .py for Python) and base64-encodes the archive before forwarding to LambdaService. Closes #607