This message was deleted.
# typescript
s
This message was deleted.
t
It looks like my node_modules aren't being uploaded to the lambda or is this expected?
t
pulumi
modules are excluded from the upload by design. Why do you need it inside the lambda body?
You should retrieve config outside the lambda, and then close over it
pulumi.Config
won't work in lambda anyway
t
ahh yup, i've just come across this in the documentation 🤦 thanks for replying!!
t
pulumi is mostly valid only within the context of CLI. and it's quite a heavy package, so it's excluded to save on upload size, memory, cold start, etc.
You should be able to do
const v = config.require('masthead')
outside and then
v.get()
inside the body.
t
legend @tall-librarian-49374 thank you very much
t
have fun!