mysterious-piano-17006
03/22/2021, 7:33 PMaws.lambda.CallbackFunction
However, my function requires a library that requires aws-sdk; When running my Lambda, it complains that jmespath is not installed (a dependency of aws-sdk); when I add it to my package.json, it then complains that xml2js is missing, so I guess it is a bad idea to add all awk-sdk's dependencies to my Pulumi project's package.json.
So I am looking for a way for Pulumi to exclude my dependency's awk-code from the package. I understand I can pass a codePathOptions
object with a extraExcludePackages
attribute to CallbackFunction
but I did not find docs about it and according to the code it takes an array of package names and aws-sdk is always added to it.
So here is my question (thanks for reading all the context ;)) : What is the syntax I should use to exclude my dependency's awk-sdk?
Thanks! 🙂codePathOptions: { extraExcludePackages: ['awk-sdk'] }
doesn't change a thingdamp-school-17708
03/23/2021, 8:56 AMcopy-node-modules
is our trick to copy the depsmysterious-piano-17006
03/23/2021, 12:53 PMdamp-school-17708
03/23/2021, 1:53 PMmysterious-piano-17006
03/23/2021, 2:53 PM