sparse-intern-71089
08/27/2020, 5:08 PMgreen-school-95910
08/27/2020, 5:10 PMbillowy-kangaroo-51688
08/27/2020, 5:10 PMaws.lambda.CallbackFunction
green-school-95910
08/27/2020, 5:10 PMgreen-school-95910
08/27/2020, 5:11 PMnpm clean-install
, there is something similar on yarn but I don't know the commandgreen-school-95910
08/27/2020, 5:12 PMbillowy-kangaroo-51688
08/27/2020, 5:12 PMrm -r node_modules && yarn
?green-school-95910
08/27/2020, 5:12 PMbillowy-kangaroo-51688
08/27/2020, 5:13 PMaws-sdk
version is correct thoughgreen-school-95910
08/27/2020, 5:16 PMgreen-school-95910
08/27/2020, 5:17 PMbillowy-kangaroo-51688
08/27/2020, 5:18 PMAWS.VERSION
outputs 2.712.0
the pinned is 2.738.0
billowy-kangaroo-51688
08/27/2020, 5:23 PM@pulumi/aws
is depending on an older version, which is why I also pinned it via Yarn version resolutions which should, according to yarn.lock
leave only the pinned version 🤷♂️ That's probably what you've asked right?^^green-school-95910
08/27/2020, 5:24 PMgreen-school-95910
08/27/2020, 5:24 PMbillowy-kangaroo-51688
08/27/2020, 5:26 PMbillowy-kangaroo-51688
08/27/2020, 5:27 PMgreen-school-95910
08/27/2020, 5:34 PMbillowy-kangaroo-51688
08/27/2020, 5:36 PMbillowy-kangaroo-51688
08/27/2020, 5:45 PMaws-sdk
in Serializing Functions which might indicate that Pulumi is not bundling aws-sdk
? Maybe I should provide the desired version via a layer then? 🤔white-balloon-205
There’s a note on ReferencingYes - I believe the AWS Lambda serialization logic intentionally leavesin Serializing Functions which might indicate that Pulumi is not bundlingaws-sdk
?aws-sdk
aws-sdk
out because it is pre-provided in the Lambda environment (and would be very expensive to include by default when typically folks want to use the included version). It would be nice to be able to offer a way to indicate you do want to include this though - and in principal that should be possible. Adding a layer also works - though I'm sure is a little more work for you.billowy-kangaroo-51688
08/27/2020, 7:02 PMruntimeDependencies
in package.json
which didn’t work for me and I tried to add this to my index.ts infrastructure
pulumi.runtime.computeCodePaths({
extraIncludePackages: ["aws-sdk"],
});
but it didn’t work either, so there seem to be ways I just don’t understand how to use them, or they’re broken?billowy-kangaroo-51688
08/27/2020, 7:53 PMbillowy-kangaroo-51688
09/01/2020, 6:49 PMaws-sdk
version