This message was deleted.
# general
s
This message was deleted.
b
just to be clear, your web service is running pulumi?
m
The web service was build with Pulumi and is being deployed with Pulumi.
b
it's unfortunately not super clear what's happening here 😞 why is the web service bundling pulumi?
m
Because at runtime we need to get a stack reference, that login happens in the npm library.
b
are you using a magic function to create a lambda by any chance?
m
i don't think so, i am fairly new in this project
i just didn't know that i couldn't use a pulumi-library function at lambda-runtime
i've spent about a week with this error and i think the best option is to refactor to remove that dependency
Just wanted to be sure if using pulumi functions at lambda-runtime is considered a bad practice.
🙌 1
b
again, its hard to be able to determine what's going on here because there's really not information, but we explicitly strip pulumi functions from any uploaded lambda to reduce the size: https://www.pulumi.com/docs/intro/concepts/function-serialization/#determining-the-required-node_modules-packages
Copy code
Note that pulumi will not include @pulumi/... packages with the Lambda. These packages exist solely to provide deployment time functionality, and do not contain any code that can work properly at run time. They are automatically stripped from a Lambda both to prevent accidental usage and to help reduce the size of the uploaded Lambda.
m
I think that is the answer that i was looking for @billowy-army-68599. Thank you!!