Run the aws cli in a container
APACHE-2.0 License
Run awscli
or s3cmd
in a container. This tooling is released under the Apache 2.0 license.
The security software malware on my work machine frequently breaks the aws
and s3cmd
commands when they tweak the settings. I need them for work, so I built a container they can't break.
Running them in a Docker container sans malware has an added benefit by providing updates to new versions faster than brew
updates does.
AWS_SECRET_ACCESS_KEY
and AWS_ACCESS_KEY_ID
set in your environmentUse c-aws
in your shell instead of aws
. c-aws
passes any arguments to aws
run inside the container.
Add antigen bundle unixorn/containerized-awscli
to your .zshrc
with your other bundle commands.
Antigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running ZSH session with antigen bundle unixorn/containerized-awscli
for testing before adding it to your .zshrc
.
cd ~/.oh-my-zsh/custom/plugins
git clone [email protected]:unixorn/containerized-awscli.git containerized-awscli
~.zshrc
and change plugins=(...)
to plugins=(... containerized-awscli)
Add zgen load unixorn/containerized-awscli
to your .zshrc
file in the same function you're doing your other zgen load
calls in. Zgen will handle automatically cloning the plugin for you the next time you do a zgen save
.
git clone
this repository/path/to/repository/bin
to your $PATH