Docker container for AWS CLI tools.
1.7K
This image will let you run AWS CLI tools without installing the AWS CLI on your local machine.
A few pre-requisites to get this to work properly:
You need your AWS credentials. See this link to set it up. You do not have to have AWS CLI installed on your system but for this container to work you will need to have the config and credentials file ready to be read.
Security note: Container does not run as root.
Once your AWS creds are ready then run this command:
docker run --rm -it -v <path to your credentials>/.aws/:/home/awscli/.aws:rw valien/docker-aws-cli "/bin/sh"
Key:
--rm --> removes container-it --> makes container interactive-v --> mounts your local folder to the container:ro --> makes that mounted volume read-only (note: If you use aws-shell then you'll need to make this directory :rw so that it can write history and work properly.)/bin/sh --> the shell that Alpine usesYou can run this container two ways:
aws-shell to use the Amazon AWS Shell utility.docker run commandsModified from this repo - https://github.com/sekka1/aws-cli-docker
Content type
Image
Digest
Size
28.5 MB
Last updated
over 8 years ago
docker pull valien/docker-aws-cli