Small, simple Alpine Linux based Docker container for AWS CLI v2
10K+
Small, simple Alpine Linux based Docker container for AWS CLI v2.
The latest aws/aws-cli 2.x release compiled into a binary with the latest python:3-alpine image, and then minimally installed into an alpine:latest image.
https://gitlab.com/jakesys/aws2 is the authoritative repository for this project; its CI/CD pipeline is triggered daily to build, test, and push the most recent AWS CLI v2 release to jakesys/aws2 on Docker Hub.
For AWS CLI v1, see https://gitlab.com/jakesys/aws and jakesys/aws on Docker Hub.
docker run [<docker-opts>] -v <aws-config-dir>:/root/.aws \
jakesys/aws2 [--log | --logfmt <fmt>] [<aws-opts>] <cmd> [<cmd-opts>]
--logOutputs log entries on STDERR, which start with a timestamp and the container's hostname. Useful when using the 'awslog' logging driver and you prefer not to have every line of output be its own CloudWatch log entry. You'll need to use the awslogs-datetime-format='%Y-%m-%dT%H:%M:%SZ - ' awslog log option to get CloudWatch to parse log entries properly.
aws commandline being executed.--logfmt <fmt>Outputs log entries on STDERR, prefixed with a strftime(3)-compatible format string. To include the aws2 container's hostname, include @{hostname} in the format string. For example, the default --log format is equivalent to --logfmt '%FT%TZ - @{hostname} - '.
Content type
Image
Digest
sha256:73b8eb304…
Size
64.4 MB
Last updated
almost 2 years ago
docker pull jakesys/aws2