aws-cli
AWS-CLI Overview
Secure your stack with a hardened AWS-CLI image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
Use AWS-CLI when you need a unified command line tool to interact with AWS services and manage your AWS resources.
Try It Out
Take the Minimus AWS-CLI image for a test run by looking up its version information:
docker run --rm -it \
reg.mini.dev/aws-cli --versionYou should see the printout with the aws-cli, Python, Linux, and source-exe versions. For example:
aws-cli/2.27.56 Python/3.13.5 Linux/5.15.0-1075-gcp source-exe/x86_64.minimos.20241031For another test, you can run the following with your environment credentials to list your S3 buckets:
docker run --rm -it \
-e AWS_ACCESS_KEY_ID=... \
-e AWS_SECRET_ACCESS_KEY=... \
-e AWS_REGION=... \
reg.mini.dev/aws-cli s3 lsUpload a file to an S3 bucket
To upload a local file to an S3 bucket run the following with your environment credentials. Before running the command, update the placeholders myfile.txt and mybucket with your file and bucket names:
docker run --rm -it \
-v $(pwd):/workdir \
-e AWS_ACCESS_KEY_ID=... \
-e AWS_SECRET_ACCESS_KEY=... \
-e AWS_REGION=... \
reg.mini.dev/aws-cli s3 cp /workdir/{myfile.txt} s3://{mybucket}/This mounts the current directory into the container and uploads myfile.txt to the specified S3 bucket.
Download a file from an S3 bucket
To download a file from an S3 bucket to the local directory. Before running the command, update the placeholders myfile.txt and mybucket with your file and bucket names:
docker run --rm -it \
-v $(pwd):/workdir \
-e AWS_ACCESS_KEY_ID=... \
-e AWS_SECRET_ACCESS_KEY=... \
-e AWS_REGION=... \
reg.mini.dev/aws-cli s3 cp s3://{mybucket}/{myfile.txt} /workdir/This mounts the current directory into the container and downloads the file myfile.txt into it.
Technical Considerations
The AWS-CLI image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.
AWS-CLI built by Minimus:
- Runs as non-root by default for a security-first approach that protects against privilege escalation attacks. The public image runs as root.
- The working directory defaults to the root directory. The public image default working directory is
/aws. - Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.