Skip to content

Maintenance: Shrink size of Powertools Layer #1348

Closed
@mploski

Description

@mploski

Summary

Our overall, current size of pypi package is 74MB:
➜ test du -h -d1 | sort -h
8.0K ./bin
24K ./six-1.16.0.dist-info
28K ./pycache
28K ./fastjsonschema-2.16.1.dist-info
28K ./jmespath-1.0.1.dist-info
28K ./wrapt-1.14.1.dist-info
36K ./python_dateutil-2.8.2.dist-info
36K ./s3transfer-0.6.0.dist-info
44K ./boto3-1.24.35.dist-info
48K ./aws_lambda_powertools-1.26.5.dist-info
68K ./aws_xray_sdk-2.10.0.dist-info
72K ./urllib3-1.26.10.dist-info
148K ./jmespath
164K ./botocore-1.27.35.dist-info
184K ./fastjsonschema
208K ./wrapt
560K ./s3transfer
716K ./dateutil
824K ./urllib3
908K ./aws_xray_sdk
1.3M ./boto3
1.6M ./aws_lambda_powertools
67M ./botocore

As it can be seen on the listing 92.2% of the size is due to botocore + boto3 package. We should find a way to make it smaller to limit overall size of our project

Why is this needed?

Less time needed for downloading powertools package via pip or lambda with powertools layer.

Which area does this relate to?

No response

Solution

No response

Acknowledgment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions