I’m a little stuck with something regarding magic functions though. I’ve tried leaving compilation to Pulumi, and also doing it myself, and I always get this when I run any of the compiled lambdas:
module initialization error: TypeError
at Symbol.[Symbol.toPrimitive] (anonymous)
at Object.anonymous (/var/task/__index.js720)
at Module._compile (module.js65230)