Could someone point me in the direction of the mag...
# aws
p
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
What exactly are you trying to do?
p
Inline functions with yarn (v2) workspaces.
Straight up symlinks don’t work but I can work out why
l
Are you looking for the mixins file?
It's in aws/lambda/lambdaMixins.d.ts, etc.
p
thanks, I’m looking for how it packages up the external dependencies (I suspect using the asset.Archive API from pulumi/pulumi)
l
The code for supporting inline functions is in the .js file, you're looking for things like computeCodePaths(), serializeFunction(), etc.
p
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 ™️