docs icon indicating copy to clipboard operation
docs copied to clipboard

Outdated AWS CLI v2 and awslocal installation steps

Open alvertogit opened this issue 1 year ago • 0 comments

I have tried to follow the instructions to install AWS CLI v2 and awslocal in my local environment detailed in https://github.com/localstack/docs/blob/main/content/en/user-guide/integrations/aws-cli/index.md#current-limitations

The command shown below does not work returning an error due to conflict versions.

https://github.com/localstack/docs/blob/363ccec3ef0606240819315a20decbced57df09c/content/en/user-guide/integrations/aws-cli/index.md?plain=1#L134

ERROR: Cannot install awscli==2.22.30 and botocore==2.0.0.dev155 because these package versions have conflicting dependencies.

The conflict is caused by:
    botocore 2.0.0.dev155 depends on awscrt==0.12.4
    awscli 2.22.30 depends on awscrt==0.23.4

I suggest to update this part of the documentation with an alternative approach that I use in my local environment.

  • Add the link to the official AWS CLI documentation and follow the steps to install the latest version of AWS CLI v2 https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
  • Once AWS CLI v2 is installed in the system create a python virtual environment in which awscli-local is installed with pip and does not have awscli installed with pip.

After that and if the virtual environment is enabled it is possible to work with AWS CLI v2 and awslocal.

alvertogit avatar Jan 08 '25 12:01 alvertogit