⚠ Since there is an official docker image, please use it.
Execute aws command on Docker.
Example of aws s3 ls command.
export AWS_ACCESS_KEY_ID="XXXXXXXX"
export AWS_SECRET_ACCESS_KEY="YYYYYYYY"
export AWS_DEFAULT_REGION="ZZZZZZZZ"
docker run --rm \
-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" \
lorentzca/aws s3 ls
Content type
Image
Digest
Size
39.9 MB
Last updated
over 7 years ago
docker pull lorentzca/aws