Install awscli version 2 for AWS tests

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2020-07-08 16:29:16 -05:00 committed by Major Hayden
parent 030adbd18c
commit 3113ba02d8

View file

@ -28,10 +28,17 @@ if ! hash jq; then
sudo dnf -qy install jq
fi
# Check for awscli.
# We need awscli to talk to AWS.
if ! hash aws; then
greenprint "Installing awscli"
sudo pip3 -qq install awscli
sudo dnf -y install unzip
pushd /tmp
curl -Ls --retry 5 --output awscliv2.zip \
https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
unzip awscliv2.zip > /dev/null
sudo ./aws/install > /dev/null
aws --version
popd
fi
TEST_UUID=$(uuidgen)