Skip to content

Commit

Permalink
Fix aws cli installation script on ARM64 (apache#25699)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanikumv authored Aug 16, 2022
1 parent 5c7c518 commit 26452da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/in_container/bin/install_aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ if command -v aws; then
exit 1
fi

DOWNLOAD_URL="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"
HOST=$(uname -m)
if [[ ${HOST} == "arm64" || ${HOST} == "aarch64" ]]; then
DOWNLOAD_URL="https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"
else
DOWNLOAD_URL="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"
fi

if [[ -e ${INSTALL_DIR} ]]; then
echo "The install directory (${INSTALL_DIR}) already exists. This may mean AWS CLI is already installed."
Expand Down

0 comments on commit 26452da

Please sign in to comment.