Skip to content

Commit

Permalink
Switch to AWS CLI v2
Browse files Browse the repository at this point in the history
Signed-off-by: Connor Catlett <[email protected]>
  • Loading branch information
ConnorJC3 committed May 23, 2024
1 parent 94f3760 commit 0485f39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 88 deletions.
85 changes: 0 additions & 85 deletions hack/tools/aws-requirements.in

This file was deleted.

11 changes: 8 additions & 3 deletions hack/tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ set -euo pipefail

readonly PKG_ROOT="$(git rev-parse --show-toplevel)"

# https://pypi.org/project/awscli/
AWSCLI_VERSION="1.32.105"
# https://github.com/aws/aws-cli/tags
AWSCLI_VERSION="2.15.56"
# https://github.com/helm/chart-testing
CT_VERSION="v3.11.0"
# https://github.com/eksctl-io/eksctl
Expand Down Expand Up @@ -99,8 +99,13 @@ function install_tar_binary() {

function install_aws() {
INSTALL_PATH="${1}"
TEMP_PATH="$(mktemp -d)"

install_pip "${INSTALL_PATH}" "${PKG_ROOT}/hack/tools/aws-requirements.in" "aws"
echo ${TEMP_PATH}
curl --location "https://awscli.amazonaws.com/awscli-exe-${OS}-x86_64-${AWSCLI_VERSION}.zip" --output "${TEMP_PATH}/awscli.zip"
unzip -q "${TEMP_PATH}/awscli.zip" -d "${TEMP_PATH}"
"${TEMP_PATH}/aws/install" --install-dir "${INSTALL_PATH}/aws-cli" --bin-dir "${INSTALL_PATH}"
rm -rf "${TEMP_PATH}"
}

function install_ct() {
Expand Down

0 comments on commit 0485f39

Please sign in to comment.