AWS-CLI installed on Alpine image, can be used e.g. if you have to deal with multiple AWS profiles.
994
An Alpine Linux container image equipped with the AWS Command Line Interface (AWS-CLI) is a streamlined and efficient solution, particularly beneficial for managing multiple AWS profiles. This configuration is ideal for users who require a lightweight environment yet need the robust functionality of AWS-CLI to interact with various AWS services. Whether for development, automation, or deployment tasks, this setup ensures that users can seamlessly switch between different AWS profiles, enhancing productivity and operational flexibility. The use of Alpine Linux, known for its minimal footprint and security features, further underscores the efficiency and reliability of this setup.
Example:
docker run --rm \
-v ~/.aws/config:/root/.aws/config \
-v ~/.aws/credentials:/root/.aws/credentials \
gabauer/alpine-aws-cli:latest \
aws s3 ls --profile profile1 && \
aws s3 ls --profile profile2
| Tag | Alpine version | AWS-CLI version | Python version |
|---|---|---|---|
| latest | 3.19.1 | 2.13.25 | 3.11.8 |
| 0.0.1 | 3.19.1 | 2.13.25 | 3.11.8 |
| 3.19.1-2.13.25 | 3.19.1 | 2.13.25 | 3.11.8 |
FROM alpine:<versionTag>
RUN apk update && \
apk add --no-cache aws-cli && \
rm -rf /var/cache/apk/* && \
mkdir -p /root/.aws /root/workdir
WORKDIR /root/workdir
Content type
Image
Digest
sha256:c389ebf47…
Size
39 MB
Last updated
over 2 years ago
docker pull gabauer/alpine-aws-cli