AWS Command Line Interface (CLI) - A containerized version.
952
This is containerized AWS CLI to avoid requiring the AWS CLI to be installed on CI machines.
Configure:
export AWS_ACCESS_KEY_ID="<id>"
export AWS_SECRET_ACCESS_KEY="<key>"
export AWS_DEFAULT_REGION="<region>"
Upload file to S3:
$ aws-cli s3 cp your_file s3://downloads.dcos.io/some_path/
Caveat: Because aws-cli.sh mounts the current directory as /workdir, paths to local files must be relative to the current directory.
To use aws-cli.sh as a drop-in replacement for calls to the aws-cli, use one of the following methods:
$ alias aws-cli='docker run --rm -t $(tty &>/dev/null && echo "-i") -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}" -v "$(pwd):/workdir" dmitriiageev/aws-cli'
$ curl -o /usr/local/bin/aws-cli https://raw.githubusercontent.com/dmitrii-ageev/aws-cli/master/aws-cli.sh && chmod a+x /usr/local/bin/aws-cli
GPLv2
Content type
Image
Digest
Size
30.6 MB
Last updated
about 8 years ago
docker pull dmitriiageev/aws-cli