Skip to content

Commit e38c94b

Browse files
authored
docs: update remarks on Lambda-bundled AWS SDK (#6880)
1 parent 7ec4e31 commit e38c94b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,14 @@ we have them listed in [UPGRADING.md](https://github.com/aws/aws-sdk-js-v3/blob/
195195

196196
### General Info
197197

198-
The Lambda provided AWS SDK is set to a specific minor version, and **NOT** the latest version. To check the minor version used by Lambda, please refer to [Lambda runtimes doc page](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
199-
If you wish to use the latest / different version of the SDK from the one provided by lambda, we recommend that you [bundle and minify](https://aws.amazon.com/blogs/compute/optimizing-node-js-dependencies-in-aws-lambda/) your project, or [upload it as a Lambda layer](https://aws.amazon.com/blogs/compute/using-lambda-layers-to-simplify-your-development-process/).
198+
The Lambda provided AWS SDK is set to a specific minor version, and NOT the latest version. To
199+
determine which version of the SDK is included with the runtime you're using,
200+
see [Runtime-included SDK versions](https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html#nodejs-sdk-included)
201+
in the Lambda Developer Guide. To maintain full control of your dependencies, and to maximize
202+
backward compatibility during automatic runtime updates, we recommend that you always include
203+
the SDK modules your code uses in your function's deployment package or in a Lambda layer.
204+
See [Backward compatibility](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-update-compatibility)
205+
to learn more.
200206

201207
The performance of the AWS SDK for JavaScript v3 on node 18 has improved from v2 as seen in the [performance benchmarking](https://aws.amazon.com/blogs/developer/reduce-lambda-cold-start-times-migrate-to-aws-sdk-for-javascript-v3/)
202208

0 commit comments

Comments
 (0)