Skip to content

Commit 3cada78

Browse files
committed
Fix ssm [release]
1 parent 60ba0bf commit 3cada78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ RUN echo "**** aws ****" && curl "https://awscli.amazonaws.com/awscli-exe-linux-
128128
sudo "/tmp/aws/install" && \
129129
rm -rf "/tmp/aws" "/tmp/awscliv2.zip"
130130

131-
RUN echo "**** aws ssm ****" && curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "/tmp/session-manager-plugin.deb" && \
131+
RUN echo "**** aws ssm **** ($TARGETPLATFORM)" && \
132+
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then SSM_LINK="https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb"; else SSM_LINK="https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_arm64/session-manager-plugin.deb"; fi && \
133+
curl "${SSM_LINK}" -o "/tmp/session-manager-plugin.deb" && \
132134
sudo dpkg -i "/tmp/session-manager-plugin.deb" && \
133135
rm -rf "/tmp/aws" "/tmp/session-manager-plugin.deb"
134136

0 commit comments

Comments
 (0)