Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install AWS CLI v2 #28

Closed
ajschmidt8 opened this issue Dec 20, 2022 · 3 comments
Closed

Install AWS CLI v2 #28

ajschmidt8 opened this issue Dec 20, 2022 · 3 comments

Comments

@ajschmidt8
Copy link
Member

The version of the aws CLI tool that we install from conda-forge is v1 (src).

There is an open issue in the feedstock repo to support v2 (link), but it seems that there are some obstacles.

Since v2 has been out for nearly three years (link), we should strive to upgrade our image to use the latest version.

In lieu of a conda package, it seems that we can simply copy the necessary files from the official AWS CLI images:

If we copy from their docker image using the line below (untested), it also gives us the added benefit of having the package version managed by Renovate.

COPY --from=amazon/aws-cli:2.9.8 /aws-cli-bin/ /usr/local/bin/

It might be worth installing other dependencies like this also. This way they're independent of the conda environment and managed by Renovate.

@ajschmidt8
Copy link
Member Author

I did some local testing and the resulting images were quite a bit larger when installing from the DockerHub images via copy (see sizes below).

CentOS
installing from docker image    1.61GB
installing from conda           1.54GB

Ubuntu
installing from docker image    1.78GB
installing from conda           1.71GB

Therefore it's probably best just to wait for conda to support v2 (see issue below) so that we don't inflate our image sizes more than we need to.

@bdice
Copy link
Contributor

bdice commented Oct 5, 2023

awscli v2 conda packages are available for linux64 but not aarch64. I opened a PR to rebuild awscli 2 with arch support: conda-forge/conda-forge-pinning-feedstock#4993

@ajschmidt8
Copy link
Member Author

linking this PR for posterity: #82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants