A simple POSIX compatible shell script to allow aws
CLI commands and subcommands to be added or overwritten.
There are two naming conventions for your executables.
aws-cmd
aws-cmd-subcmd
Where cmd
and subcmd
are your custom (or existing) command and subcommand names. If aws-example
and aws-another-example
are in your $PATH
, then you will be able to execute aws example
and aws another example
as if they were part of the AWS CLI.
Note: You gain none of the benefits of a true AWS CLI command, such as profile configuration. However, you can use
aws configure get $SETTING
to get profile appropriate settings.
- Copy the script to
$HOME/.local/opt/aws-extend.sh
- Edit your shell profile to include the script (e.g.
source "$HOME/.local/opt/aws-extend.sh"
).