From c375b89f0b5d8f31ffd83e8ad6620ba9e53d3b1d Mon Sep 17 00:00:00 2001 From: Roman <2651029+aromka@users.noreply.github.com> Date: Mon, 27 Oct 2025 12:32:14 -0400 Subject: [PATCH] Add note on reducing vendor size for AWS SDK Added note about removing unused AWS services to reduce bundle size. --- docs/runtimes/function.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/runtimes/function.mdx b/docs/runtimes/function.mdx index 087c306c8..ffb41045d 100644 --- a/docs/runtimes/function.mdx +++ b/docs/runtimes/function.mdx @@ -248,6 +248,10 @@ You first need to install the AWS PHP SDK by running $ composer require aws/aws-sdk-php ``` + + Note: You can remove unused AWS services by following [Removing Unused Services guide](https://github.com/aws/aws-sdk-php/tree/master/src/Script/Composer) to reduce vendor size of your bundle. + + ```php $lambda = new \Aws\Lambda\LambdaClient([ 'version' => 'latest',