You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output size of application before compression (#186)
* Output size of application before compression
- Provides useful feedback for the developer which is otherwise difficult to access without downloading and uncompressing the artifact from Lambda
- If I'm understanding correctly, the 250MB uncompressed limit includes the size of the custom Lambda runtime and any additional layers, so the check performed by ensureArchiveIsWithinSizeLimits may actually not be providing any useful value since the actual size of the uncompressed application plus the runtime and layers will be larger than the value being checked here
- This change doesn't address that issue but does at least provide feedback to the developer so that they can understand what effect their changes are having on the uncompressed size of their application
- Follows output format of subsequent step to keep output consistent in CLI
- Passes in archive size to ensureArchiveIsWithinSizeLimits via parameter to avoid doing the work of calculating the size twice
NOTES:
- The AWS Lambda docs specify MB as the unit for the size limits (50MB Archive size limit and 250MB Uncompressed size limit) whereas I believe the MB calculation for the output and size check in this file are both calculating MiB
- This may warrant another look if a way can be found to provide a more meaningful size check against the 250MB limit imposed by AWS
* Update CompressApplication.php
* Update CompressApplication.php
Co-authored-by: Taylor Otwell <[email protected]>
0 commit comments