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

Is Pacu compatible with AWS CLI v2? #446

Open
niooss-ledger opened this issue Jul 30, 2024 · 1 comment
Open

Is Pacu compatible with AWS CLI v2? #446

niooss-ledger opened this issue Jul 30, 2024 · 1 comment

Comments

@niooss-ledger
Copy link

Hello,

Currently, installing Pacu on a Linux system with AWS CLI version 2 also installs AWS CLI version 1, "downgrading" it. While it is possible to re-install AWS CLI v2 again, I was wondering whether this could cause issues. Is Pacu compatible with AWS CLI v2? (Or does it only support CLI v1?)

More precisely, in a container running docker.io/library/python:3.12, here are some commands to reproduce the issue

# Install AWS CLI v2 following instructions from
# https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

# AWS CLI v2 is now installed in /usr/local/bin/aws
# Check the version. This displays "aws-cli/2.17.19 Python/3.11.9 Linux/5.19.0-50-generic exe/x86_64.debian.12"
aws --version

# Install Pacu
pip install pacu

# Check the version again
aws --version
# This displays "aws-cli/1.33.32 Python/3.12.0 Linux/5.19.0-50-generic botocore/1.34.150"
# By the way "which aws" still shows "/usr/local/bin/aws": the file was overwritten.

Pacu installs AWS CLI v1 because it depends on Python package awscli:

awscli = "^1.18"

AWS stated in aws/aws-cli#4947 they do not plan to publish AWS CLI v2 on PyPI, so it is not possible to upgrade awscli in Pacu dependencies to version 2. Anyway, is this dependency actually used? Would Pacu also be compatible with AWS CLI v2?

fishilico added a commit to fishilico/home-files that referenced this issue Aug 11, 2024
Fix version conflict cause by Pacu installing Python package `awscli`:
RhinoSecurityLabs/pacu#446
@za
Copy link
Contributor

za commented Nov 21, 2024

I thought Pacu was running on AWS CLI v2. I was wrong.

➜  pacu-bin source .env/bin/activate
➜  pacu-bin aws --version
aws-cli/1.33.21

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