-
Notifications
You must be signed in to change notification settings - Fork 452
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
node 18.x support #144
Comments
I'm having the same problem. I had to update my script and SES forced my to upgrade the node version and now it doesn't work. Were you able to fix it? |
I was able to go back to node 16 which is still supported. I just checked before this reply. |
Here's code that will run on Node 18.x and uses SES v1 client: https://gist.github.com/mylesboone/b6113f8dd74617d27f54e5d0b8598ff7 |
error: PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. You may encounter the above error message. s3: overrides && overrides.s3 ? |
Thanks for this report! I've updated the documenation to recommend using the Node.js 16 runtime for now: 67bc86b However I also found that the code works in Node.js 18 as is if you install the AWS SDK v2 module and its dependencies. To do this, change the following step in the documented Set Up process:
To do the following instead:
Let me know if this approach works for you. |
I managed to get it working in Node.js 18 by modifying the gist and only using the lambda code editor, without installing any additional dependencies. CloudWatch errors were showing:
I just updated the import statements, changed the 5 exports to consts and changed the exports.handler to export const handler. https://gist.github.com/lvn1/9814d301bead8e0ecfc79ba9efe64b4a |
Not my work. Following guidance/code/links found here: arithmetric#144
The 2nd gist presumably needs to have line 3-4 replaced with that of the 1st link. It then still fails where |
Hi,
This script does not work when lambda is configured to run node 18. AWS lambda node 18 is using AWS SDK v3 and the require statement no longer works.
More information here:
https://aws.amazon.com/blogs/compute/node-js-18-x-runtime-now-available-in-aws-lambda/
Thanks,
Chuck
The text was updated successfully, but these errors were encountered: