Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

install-vault uses a deprecated method to install awscli v1. Should be v2 #266

Open
@queglay

Description

@queglay

Describe the bug
install-vault uses sudo yum install -y awscli curl unzip jq
...but it is no longer recommended to install aws cli this way and should be updated to use v2.
On centos 7 you may encounter issues with this deprecated version such as:

[centos@ip-172-31-38-218 ~]$ /bin/aws
Traceback (most recent call last):
  File "/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 37, in <module>
    from awscli.help import ProviderHelpCommand
  File "/usr/lib/python2.7/site-packages/awscli/help.py", line 24, in <module>
    from botocore.docs.bcdoc import docevents
ImportError: cannot import name docevents

The solution is to install aws cli v2 instead.

I install explicit versions like below:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.5.4.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
sudo ./aws/install -b /usr/local/bin

It is difficult to determine the right approach with minor versions and dependencies. Perhaps the install should just check that a version is installed between a supported range of versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions