This is a simple Alpine Docker image with the aws-cli command preinstalled.
Simple prefix any command with docker run --rm -it gabe565/aws. For example:
docker run --rm -it gabe565/aws help
The simplest way to authenticate is by using the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables:
docker run --rm -it -e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE -e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY gabe565/aws help
Alternatively, you can volume bind an existing AWS configuration directory to /.aws.
docker run --rm -it -v ~/.aws:/.aws gabe565/aws help
If you need to bind the current directory to a volume, the container runs the given command in /data. You can bind the current directory to /data with -v "$PWD:/data".
For example, to sync the contents of a bucket called example-bucket to the current directory, run:
docker run --rm -it -v "$PWD:/data" gabe565/aws s3 sync s3://example-bucket .
Content type
Image
Digest
Size
32.7 MB
Last updated
over 5 years ago
docker pull gabe565/aws