Skip to content

Reduce size of installed CLI #9975

@akloss-cibo

Description

@akloss-cibo

Describe the feature

The bulk of the CLI is uncompressed data from botocore. Per boto/botocore#3485 (comment), it seems that more recent botocore implementations compress this data. It would be nice for the SDK to also compress this data. It's not clear to me why there's a botocore fork either, but that's not really my concern.

Use Case

The AWS CLI tends to be installed lots of places, including in docker images where it will tend to be copied/downloaded repeatedly. Having it be significantly smaller would result in cost savings for those who use it.

Proposed Solution

Consider using botocore's compressed implementation or another compression solution.

Other Information

Comparison of the expanded data vs zip compression:

% zip -9 -r -p -q data.zip data
% du -h -s data.zip data
12M	    /tmp/data.zip
103M	data
%

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

aws-cli/2.32.30 Python/3.13.11 Linux/6.14.0-1018-aws exe/x86_64.ubuntu.24

Environment details (OS name and version, etc.)

Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.installationp3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions