How I run the AWS CLI

I didn't want to download the AWS CLI client over and over, so I wrote a tiny wrapper script and run it in a docker container now.
#!/usr/bin/env bash
rootdir="${HOME}/.config/aws-cli-root"
if [[ ! -d "${rootdir}" ]]; then
echo "${rootdir} does not exist"
exit 1
fi
# shellcheck disable=SC2068
docker run -it -v "${rootdir}":/root/.aws amazon/aws-cli $@
0 comments
Reply