Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda Archive missing files #11

Open
david33409 opened this issue Aug 12, 2016 · 2 comments
Open

Lambda Archive missing files #11

david33409 opened this issue Aug 12, 2016 · 2 comments

Comments

@david33409
Copy link

Thank you for the project. After creating the cognito-lambda.zip file and uploading to Lambda I get several errors indicating that some modules were not found. According to the zip-lambda.sh file several modules are included more than once. For example, the modules loadash, moment ad randomstring are included multiple times in the sh file. Is this on purpose?

The first module that I was missing was array-uniq. Then I was missing extend and so on from there. I'm confused why the cognito-lambda.zip file does not contain all the necessary modules. Is it possible that the zip-lambda.sh script is missing modules AND the duplicates should be removed?

Thank you in advance for your time and consideration.

@david33409
Copy link
Author

FYI - after npm install cognito-helper there are 127 modules in the node_modules folder. I can only assume all these modules are required based on dependencies of all the modules. If I am correct then wouldn't all 126 modules (if I exclude cognito-helper) be required in the cognito-lambda.zip file? I've spent a lot of time adding one module at a time to the cognito-lambda.zip file only to find out there is still yet another module that is missing.

It would also be awesome if a sample cognito-amazon.zip file was available that can be uploaded, tested and then tweaked with individual settings. This way there is no doubt what is required (and not missing).

Thank you

@DaleBakker
Copy link

might not be the best solution but rather then adding modules one at a time
node_modules/{packageName} \
why not just change the zip-lambda.sh file to this
node_modules/* \
that should just add everything in the node_modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants