brefphp / bref

Serverless PHP on AWS Lambda
https://bref.sh
MIT License
3.09k stars 367 forks source link

(Docs) Added information on the deployment docs for reducing deployment size when using aws/google SDKs #1683

Closed danniehansen closed 10 months ago

danniehansen commented 10 months ago

My codebase was sitting just on the edge of maximum deployment size & every now and then staging deployments would complain after our patching routine because google or AWS added new services that increased the deployment size.

Our solution have for years been just to extend the never ending exclude list with new services. But this time i got quite annoying by it and with a few searches i found some nifty composer scripts that can be used to automatically cleanup unused services in both the Google and AWS SDKs!

AWS SDK was heavily inspired by https://github.com/aws/aws-sdk-php/pull/2456 - so the syntax is much the same.

This change adds a small callout segment in the deployment which just highlights this as these packages are often found in serverless deployments.

mnapoli commented 10 months ago

Thank you!