You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2022/08/16 16:15:37 UTC

[airflow] branch main updated: Fix aws cli installation script on ARM64 (#25699)

This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 26452dae8f Fix aws cli installation script on ARM64 (#25699)
26452dae8f is described below

commit 26452dae8fdb703bea0b8538486022c6f1af7d96
Author: Phani Kumar <94...@users.noreply.github.com>
AuthorDate: Tue Aug 16 21:45:27 2022 +0530

    Fix aws cli installation script on ARM64 (#25699)
---
 scripts/in_container/bin/install_aws.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/scripts/in_container/bin/install_aws.sh b/scripts/in_container/bin/install_aws.sh
index 33fd7ff2e1..f4a1703d19 100755
--- a/scripts/in_container/bin/install_aws.sh
+++ b/scripts/in_container/bin/install_aws.sh
@@ -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."