https://pulumi.com logo
Title
p

prehistoric-kite-30979

10/07/2021, 10:40 PM
Could someone point me in the direction of the magic lambda function code implementation, I’ve been looking the the pulumi-aws repo but cant find it 😅. I’m trying to build a workaround for https://github.com/pulumi/pulumi/issues/2661
c

crooked-pillow-11944

10/07/2021, 10:45 PM
What exactly are you trying to do?
p

prehistoric-kite-30979

10/07/2021, 10:45 PM
Inline functions with yarn (v2) workspaces.
Straight up symlinks don’t work but I can work out why
l

little-cartoon-10569

10/07/2021, 10:49 PM
Are you looking for the mixins file?
It's in aws/lambda/lambdaMixins.d.ts, etc.
p

prehistoric-kite-30979

10/07/2021, 10:51 PM
thanks, I’m looking for how it packages up the external dependencies (I suspect using the asset.Archive API from pulumi/pulumi)
l

little-cartoon-10569

10/07/2021, 10:51 PM
The code for supporting inline functions is in the .js file, you're looking for things like computeCodePaths(), serializeFunction(), etc.
p

prehistoric-kite-30979

10/07/2021, 10:54 PM
found it, thanks for the help
👍 1
Ok, so I’ve been doing some investigation and think I almost have a workaround for getting lamdas to work. https://github.com/pulumi/pulumi/issues/2661#issuecomment-939531284
tldr is that whatever is doing the bundling can’t distinguish between files and symlinks so if we can get that to work then it should just work ™️