3 Answers
- Newest
- Most votes
- Most comments
3
Same problem, please update sdk version in runtime soon! Thanks
answered 3 years ago
2
Hi,
You can see supported runtimes here: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
For node18, latest sdk version is 3.188.0.
Client-scheduler seems to be introduced in 3.208. https://github.com/aws/aws-sdk-js-v3/releases?page=6.
Thus you ll need to install it explicitly, hope it helps
0
This creates a pain from being able to to exclude @aws-sdk* in CDK nodeJSFunction if using Node 18 but having to make an exception for this one library.
Also want to point out that Bundling Options is also misleading in this regard.
answered 3 years ago
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 4 years ago

How can I do that? Thanks
You need to npm install the. Library in your package.json like npm install @aws-sdk/client-scheduler —save.
You need to include the node modules folder in the uploaded zip: https://docs.aws.amazon.com/lambda/latest/dg/nodejs-package.html#nodejs-package-dependencies