Sign inSign up

racciari/awscli

By racciari

Updated almost 8 years ago

This image provides an easy way to run the AWS CLI.

Image
1

466

racciari/awscli repository overview

awscli

This image provides an easy way to run the AWS CLI.

How to use this image

You need to set 2 environment variables at runtime:

  • AWS_ACCESS_KEY_ID: your access key
  • AWS_SECRET_ACCESS_KEY: your token

You can also mount any directory to the /mnt directory inside the container to upload files.

Then, you can just run the container with the AWS S3 command you want.

  • Create a bucket:
# docker run -ti --tty -e AWS_ACCESS_KEY_ID=demo:demo -e AWS_SECRET_ACCESS_KEY=DEMO_PASS racciari/awscli --endpoint-url http://192.168.1.1:6007 --no-verify-ssl s3api create-bucket --bucket testbucket
  • List buckets:
# docker run -ti --tty -e AWS_ACCESS_KEY_ID=demo:demo -e AWS_SECRET_ACCESS_KEY=DEMO_PASS racciari/awscli --endpoint-url http://192.168.1.1:6007 --no-verify-ssl s3 ls
  • Upload the local file ``~/tmp/fileto the buckettestbucket`:
# docker run -v ~/tmp:/mnt -ti --tty -e AWS_ACCESS_KEY_ID=demo:demo -e AWS_SECRET_ACCESS_KEY=DEMO_PASS racciari/awscli --endpoint-url http://192.168.1.1:6007 --no-verify-ssl s3 cp /mnt/file s3://testbucket

More information on the AWS CLI in the AWS CLI documentation.

Tag summary

Content type

Image

Digest

Size

29.1 MB

Last updated

almost 8 years ago

docker pull racciari/awscli