Amazon Linux docker image with aws-cli
installed.
- Using credentials:
docker run -it \
-v $HOME/.aws:/root/.aws \
-e AWS_PROFILE=<some-profile> \
memeddev/docker-aws-cli:0.7.0 aws s3 ls
For security reasons, the image does not contains AWS Credentials. Therefore, user must pass
$HOME/.aws
as volume, and-e AWS_PROFILE=<some-profile>
to have access to AWS API.
- Using env vars:
docker run -it \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
memeddev/docker-aws-cli:0.7.0 aws s3 ls
More information about authentication at AWS CLI Docs.