Hello Everyone -
I am trying to understand how should I write the runtime code of AWS lambda in Pulumi.
I have a code which consists of several user-defined modules in typescript. However, when I try to deploy the lambda using pulumi, the whole deployment process is stuck in the preview phase.
I did read the documentation regarding function serialization in
https://www.pulumi.com/docs/intro/concepts/function-serialization/ however I didn't quite understand what I should or should not do when approaching the task of writing a lambda code.
What modules can I import? Should they only come from folder node_modules?
Can these modules import other user-defined modules themselves?
Can I write the code in TypeScript entirely (i.e. using enums, classes, interfaces etc.) ?
Can one of you guys shed a bit more light on how to do this task?
Thank you all!