https://pulumi.com logo
#aws
Title
# aws
r

rough-jordan-15935

11/28/2023, 6:40 AM
i'm getting this error after deploying a lambda function through pulumi any tips on fixing this error?
b

brave-planet-10645

11/28/2023, 7:08 AM
Is that an error when you invoke the lambda or when you run
pulumi up
? (Looks like cloudwatch but wanted to confirm)
r

rough-jordan-15935

11/28/2023, 7:49 AM
the error comes after running Pulumi Up and after invoking the lambda
b

brave-planet-10645

11/28/2023, 8:36 AM
In that case, it looks like you’re missing a package that your lambda code is expecting.
r

rough-jordan-15935

11/28/2023, 12:58 PM
Not really no. I’ve been using these Lambda functions for a year with no change. And today I did a deployment and got this issue. The error goes away when using CodeBuild. Same commands are executed in codebuild. Not sure why it only happens in local env and for About 50 of my lambdas
b

brave-planet-10645

11/28/2023, 1:31 PM
Is this the first time you’ve used Pulumi to deploy these lambda functions? Can you share the Pulumi code you’re using?
r

rough-jordan-15935

11/28/2023, 1:31 PM
No, I’ve been using pulumi for the past 2 years
I don’t think I could share the code as it would violate my companies nda. Is there any other way we could work this out ?
b

brave-planet-10645

11/28/2023, 1:33 PM
What changes were made between the last deployment and this one?
r

rough-jordan-15935

11/28/2023, 1:48 PM
Nothing, I only ran a pulumi up
b

brave-planet-10645

11/28/2023, 1:49 PM
So no changes to the lambda code and no changes to the Pulumi code. How are you running
pulumi up
? You mentioned that it ran on code build. How are you running it otherwise?
r

rough-jordan-15935

11/28/2023, 1:51 PM
For local development I run it on my pc. But for dev env releases we use codebuild and that issue fixes I created a build for the same stack and when running the same stack creating the error through codebuild, it disappears !
My guess is in local deployment some modules don’t get bundled!