Sign inSign up

gabauer/alpine-aws-cli

By gabauer

•Updated over 2 years ago

AWS-CLI installed on Alpine image, can be used e.g. if you have to deal with multiple AWS profiles.

Image
0

994

gabauer/alpine-aws-cli repository overview

⁠Description

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.

⁠Usage

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

⁠Tags

TagAlpine versionAWS-CLI versionPython version
latest3.19.12.13.253.11.8
0.0.13.19.12.13.253.11.8
3.19.1-2.13.253.19.12.13.253.11.8

⁠Dockerfile

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

Tag summary

Content type

Image

Digest

sha256:c389ebf47…

Size

39 MB

Last updated

over 2 years ago

docker pull gabauer/alpine-aws-cli