Sign inSign up

gabe565/aws

By gabe565

Updated over 5 years ago

Image
0

2.2K

gabe565/aws repository overview

docker-aws

This is a simple Alpine Docker image with the aws-cli command preinstalled.

Usage

Simple prefix any command with docker run --rm -it gabe565/aws. For example:

docker run --rm -it gabe565/aws help
Authentication
Environment Variables

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
AWS Config

Alternatively, you can volume bind an existing AWS configuration directory to /.aws.

docker run --rm -it -v ~/.aws:/.aws gabe565/aws help
Local Volume Binding

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 .

Tag summary

Content type

Image

Digest

Size

32.7 MB

Last updated

over 5 years ago

docker pull gabe565/aws