Sign inSign up

jakesys/aws2

By jakesys

Updated almost 2 years ago

Small, simple Alpine Linux based Docker container for AWS CLI v2

Image
2

10K+

jakesys/aws2 repository overview

jakesys/aws2

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.

Usage

docker run [<docker-opts>] -v <aws-config-dir>:/root/.aws \
  jakesys/aws2 [--log | --logfmt <fmt>] [<aws-opts>] <cmd> [<cmd-opts>]
Extra Options
--log

Outputs 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.

  • START log entry contains the aws commandline being executed.
  • OUTPUT log entry contains the interleaved STDOUT and STDERR from the executed commandline.
  • EXIT log entry contains the commandline's exit code and duration, in seconds.
--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} - '.

Tag summary

Content type

Image

Digest

sha256:73b8eb304

Size

64.4 MB

Last updated

almost 2 years ago

docker pull jakesys/aws2