Skip to content

MemedDev/docker-aws-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Memed Docker AWS CLI

Amazon Linux docker image with aws-cli installed.

Source code at GitHub.

Registry at DockerHub.

Running

  1. 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.

  1. 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.