aws / aws/aws-cli

Reduce size of installed CLI

Open
#9,975 5 comments 1 reaction 0 assignees View on GitHub
feature-request installation p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the feature

The bulk of the CLI is uncompressed data from botocore. Per https://github.com/boto/botocore/issues/3485#issuecomment-3726250475, 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.