Skip to content

Commit 229a777

Browse files
committed
dev: switch to aws v2 for devcontainer
1 parent 5f40649 commit 229a777

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM mcr.microsoft.com/vscode/devcontainers/base:1-focal
22

33
# install aws
4-
RUN apt-get update && \
5-
apt-get install -y unzip python3-pip && \
6-
pip3 install --no-cache-dir --upgrade awscli && \
7-
apt-get clean && \
8-
rm -rf /var/lib/apt/lists/*
4+
RUN SYSTEM_ARCH=$(uname -m) \
5+
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-${SYSTEM_ARCH}.zip" -o "awscliv2.zip" \
6+
&& unzip awscliv2.zip \
7+
&& aws/install \
8+
&& aws --version \
9+
&& rm -rf aws
910

1011
# install terraform
1112
ENV TERRAFORM_VERSION=1.5.1

0 commit comments

Comments
 (0)