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

Switch to AWS CLI v2 #2048

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 0 additions & 85 deletions hack/tools/aws-requirements.in

This file was deleted.

12 changes: 9 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,14 @@ 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"
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}"
# Must cleanup (if it exists) or else installer will error with "Found preexisting AWS CLI installation"
rm -rf "${INSTALL_PATH}/aws-cli" "${INSTALL_PATH}/aws"
"${TEMP_PATH}/aws/install" --install-dir "${INSTALL_PATH}/aws-cli" --bin-dir "${INSTALL_PATH}"
rm -rf "${TEMP_PATH}"
}

function install_ct() {
Expand Down
Loading