This plugin provides completion support for awscli and a few utilities to manage AWS profiles and display them in the prompt.
To use it, add
aws to the plugins array in your zshrc file.
asp [<profile>]: sets
<profile>. It also sets
<profile>for the Elastic Beanstalk CLI. Run
aspwithout arguments to clear the profile.
agp: gets the current value of
aws_change_access_key: changes the AWS access key of a profile.
aws_profiles: lists the available profiles in the
~/.aws/config). Used to provide completion for the
SHOW_AWS_PROMPT=falsein your zshrc file if you want to prevent the plugin from modifying your RPROMPT. Some themes might overwrite the value of RPROMPT instead of appending to it, so they'll need to be fixed to see the AWS profile prompt.
The plugin creates an
aws_prompt_info function that you can use in your theme, which displays
$AWS_PROFILE. It uses two variables to control how that is shown:
ZSH_THEME_AWS_PREFIX: sets the prefix of the AWS_PROFILE. Defaults to
ZSH_THEME_AWS_SUFFIX: sets the suffix of the AWS_PROFILE. Defaults to