-
Notifications
You must be signed in to change notification settings - Fork 126
Generating node_modules for node runtimes #26
Comments
One option could be to detect the node runtime, that the Another option would be to expose a new argument, |
Hi, as you know we were working on custom build commands. That's in v0.11.0 now and an example can be found at https://github.com/claranet/terraform-aws-lambda/tree/master/tests/build-command If you come up with a good nodejs example, we can add it to the tests directory and think about pulling the functionality into build.py so it doesn't require a custom build script. |
as this issue is still open, just wanted to point out that the above example works on node packages. just change also, thank you for this example. hadn't seen it before and it was super helpful. |
Thanks for reporting that it works 👍 I've made another module terraform-aws-lambda-builder that supports nodejs and doesn't require nodejs or docker to be installed locally. I've only added support for |
Any thoughts on running something like
npm install --production
to create thenode_modules
directory prior to zipping up a directory for node runtimes? Generally, the directory is added to a .gitignore, so the dependencies are not present unless installed first.The text was updated successfully, but these errors were encountered: