-
Notifications
You must be signed in to change notification settings - Fork 5
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
Documentation on working with other layers #6
Comments
@cjlludwig When using the everynode Lambda layers, the standard Node.js runtimes from AWS are not used at all. You will notice that the instructions in the readme use the
The implication is that the Node.js executable normally provided by the AWS runtime is absent. Instead, the executable of the selected version of Node.js is placed in One thing you can try to make the composition with other layers work is to provide a |
I have many scripts starting with |
@jlarmstrongiv How are you launching those scripts from your code? The custom runtime bundled in the layer sets the |
While attempting to test this repo I encountered a couple of hiccups. First, I wasn't seeing the node version updated when checking inside my Lambda runtime. After some testing I realized that my runtime in my Lambda template was still set to "nodejs14.x" which was overriding any changes the Lambda made. This setting would be useful to highlight in the readMe.
Second, I'm having issues getting other layers to work when using in conjunction with this repo. For my use case it seems that using a node shebang declaration in my other layer fails. This layer works when using AWS node runtimes so it seems that the layer has changed other parts of the environment outside of node version. This likely just requires some tweaking on my end but it would be helpful to include some documentation on how running an everynode layer differs from the standard AWS node runtime.
#!/usr/bin/env node /usr/bin/env: node: No such file or directory
Appreciate the work here. Very interesting feature!
The text was updated successfully, but these errors were encountered: