A minimal alpine linux container with the aws cli using the tag source from aws/aws-cli.
Each image is created using one of the base Alpine releases (as seen below) and for both amd/64 and arm/64
architectures.
To run the images against different platforms, use the --platform switch when evoking your container runtime:
# amd64
docker run --platform linux/amd64 theidledeveloper/aws-cli-alpine:v2-nightly-alpine3.18 /bin/sh -c "aws --version"
# arm64
docker run --platform linux/arm64 theidledeveloper/aws-cli-alpine:v2-nightly-alpine3.18 /bin/sh -c "aws --version"Versioned released are created when a new version is tagged in aws/aws-cli/tags.
| Image Name | Details | 
|---|---|
| theidledeveloper/aws-cli-alpine:2.x.x-alpine3.18theidledeveloper/aws-cli-alpine:2.x.x | Specific version with an alpine 3.18 base operating system. This is also deemed latest. | 
| theidledeveloper/aws-cli-alpine:2.x.x-alpine3.17 | Specific version with an alpine 3.17 base operating system | 
| theidledeveloper/aws-cli-alpine:2.x.x-alpine3.16 | Specific version with an alpine 3.16 base operating system | 
| theidledeveloper/aws-cli-alpine:2.x.x-alpine3.15 | Specific version with an alpine 3.15 base operating system | 
Nightly builds are created from the latest commit at aws/aws-cli/tree/v2 for each alpine version listed below.
The image makes use of ARG instructions to allow the use of a single Dockerfile but build images with
different base image versions of aws-cli tags. To properly supply the image ARGs pass in ALPINE_VERSION and
AWS_CLI_VERSION using the --build-arg flag. Alpine image versions can be found at
alpine dockerhub but also need to be cross checked with
python alpine as this image is used to build the aws-cli from source. You can also
find the available aws-cli tags here.
To build an alpine 3.18+ aws-cli version 2.11.20 use below:
docker build --build-arg ALPINE_VERSION=3.18 --build-arg AWS_CLI_VERSION=2.11.20 -t aws-cli-alpine:2.11.20 .To build an alpine 3.17 aws-cli version 2.9.8 use below:
docker build --build-arg ALPINE_VERSION=3.17 --build-arg AWS_CLI_VERSION=2.9.8 -t aws-cli-alpine:2.9.8 .Inspired by devopscorner/aws-cli