Public | Automated Build

Last pushed: 2 years ago
Short Description
An Alpine Linux based docker image which provides the `aws` tool as entrypoint.
Full Description

rojaro/awscli

The image comes without build dependencies and is therefore a pretty small download at only 26MB.
The image is currently based on alpine:3.3.

$ docker run --rm -ti rojaro/awscli:1.9.17 --version
aws-cli/1.9.17 Python/2.7.11 Linux/4.2.0-22-generic botocore/1.3.17

Usage

Providing the credentials as environment variables:

docker run -ti \
    --rm \
    --env AWS_ACCESS_KEY_ID=xxxx \
    --env AWS_SECRET_ACCESS_KEY=yyy \
    rojaro/awscli <command>

You could also provide the credentials as a simple variables file:

AWS_ACCESS_KEY_ID=xxx
AWS_SECRET_ACCESS_KEY=yyy

and use it like this

docker run -ti \
    --rm \
    --env-file /path/to/env-file \
    rojaro/awscli <command>

Or just map your credentials file and specify the profile as environment variable:

docker run -ti \
    --rm \
    --env AWS_PROFILE=zzz \
    --volume ~/.aws/crendentials:/root/.aws/credentials \
    rojaro/awscli <command>
Docker Pull Command
Owner
rojaro
Source Repository