Skip to content

Instantly share code, notes, and snippets.

@rlaace423
Created February 28, 2025 08:49
Show Gist options
  • Save rlaace423/7b8c1121f2ad859ad50507967dde720e to your computer and use it in GitHub Desktop.
Save rlaace423/7b8c1121f2ad859ad50507967dde720e to your computer and use it in GitHub Desktop.
install aws-cli in Alpine Linux
# Python 이 없다면 설치
apk add --update --no-cache python3 python3-dev py3-pip build-base
# aws-cli 설치
AWSCLI_VERSION=2.24.14
export CFLAGS="-Wno-error=incompatible-pointer-types" # ruamel.yaml.clib 빌드 에러 때문에 필요
apk add --no-cache \
curl \
make \
cmake \
gcc \
g++ \
libc-dev \
libffi-dev \
openssl-dev \
groff
curl https://awscli.amazonaws.com/awscli-${AWSCLI_VERSION}.tar.gz | tar -xz
cd awscli-${AWSCLI_VERSION}
./configure --with-download-deps
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment