From 84d19bfb975fd05ea5eef6f3b3609240679927ad Mon Sep 17 00:00:00 2001 From: Ruben Ruiz de Gauna Date: Tue, 23 Jan 2024 16:23:04 +0100 Subject: [PATCH] add aws session manager plugin --- ci-runner-image/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci-runner-image/Dockerfile b/ci-runner-image/Dockerfile index 8492745..8b311fe 100644 --- a/ci-runner-image/Dockerfile +++ b/ci-runner-image/Dockerfile @@ -36,6 +36,12 @@ RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add - RUN add-apt-repository --yes --update "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" \ && apt install -y terraform + +# Requirements to manage EC2 instances using SSM. This should be moved into the fargate-runner-action Dockerfile \ +RUN python3 -m pip install boto3 && \ + curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb" && \ + dpkg -i session-manager-plugin.deb + RUN mkdir ~/.ssh/ COPY ./entrypoint.sh /entrypoint.sh