From 12dc5adb2b8cd2ebf293cbe12ecabf2b1d2f90d5 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 20 Sep 2024 15:56:41 +0300
Subject: [PATCH] Workbench: Install the AWS CLI using Pipx.

---
 workbench/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/workbench/Dockerfile b/workbench/Dockerfile
index 02f87df..5d0d1ab 100644
--- a/workbench/Dockerfile
+++ b/workbench/Dockerfile
@@ -174,7 +174,6 @@ ENV PIPX_HOME /opt/pipx
 ENV PIPX_BIN_DIR /opt/pipx/bin
 # hadolint ignore=DL3013
 RUN python3 -m pip install --no-cache-dir --break-system-packages \
-        https://github.com/aws/aws-cli/archive/refs/heads/v2.zip \
         Glances \
         PyGObject \
         PyMySQL \
@@ -245,6 +244,7 @@ RUN python3 -m pip install --no-cache-dir --break-system-packages \
     && \
     pipx install chalice && \
     pipx install curator-opensearch && \
+    pipx install https://github.com/aws/aws-cli/archive/refs/heads/v2.zip && \
     rm -rf /tmp/* /var/tmp/* ~/.cache/*
 ENV COREPACK_HOME=/usr/local/share/corepack
 # hadolint ignore=DL3016
-- 
GitLab