Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Cw | 664 | a month ago | 16 | January 21, 2022 | 22 | apache-2.0 | Go | |||
The best way to tail AWS CloudWatch Logs from your terminal | ||||||||||
Gbt | 523 | 3 hours ago | 1 | June 18, 2021 | 2 | mit | Go | |||
Highly configurable prompt builder for Bash, ZSH and PowerShell written in Go. | ||||||||||
Awsp | 102 | 3 years ago | 5 | January 03, 2020 | 2 | JavaScript | ||||
Switch AWS Profiles Easily | ||||||||||
Zsh Aws Vault | 69 | 2 months ago | 2 | mit | Shell | |||||
oh-my-zsh plugin for aws-vault | ||||||||||
Awsenv | 56 | 6 years ago | 3 | apache-2.0 | Shell | |||||
Simple AWS environment manager (aka rbenv for aws) | ||||||||||
Shell Aws Autoprofile | 37 | 3 years ago | apache-2.0 | Shell | ||||||
AWS Auto Profile Selection Add-on for ZSH and BASH | ||||||||||
Dotfiles | 22 | 2 days ago | 2 | mit | Shell | |||||
My dotfiles | ||||||||||
Go Rapture | 22 | 7 months ago | 3 | Go | ||||||
Shell-integrated CLI for assuming AWS IAM roles | ||||||||||
Cloud Toolbox | 16 | 6 hours ago | gpl-3.0 | Shell | ||||||
Docker Image to work with Azure, AWS, Google Cloud, Docker, Kubernetes, Openshift, Helm, Ansible, Vault and Terraform. | ||||||||||
Zsh Ec2ssh | 13 | 5 years ago | 1 | mit | Shell | |||||
zsh plugin to list up EC2 instances and ssh login the instances. |
oh-my-zsh plugin for aws-vault
This plugin is intended to be used with oh-my-zsh
$ cd ~/.oh-my-zsh/custom/plugins
(you may have to create the folder)$ git clone https://github.com/blimmer/zsh-aws-vault.git
zsh-aws-vault
to your oh-my-zsh plugins:plugins=(
git
ruby
zsh-aws-vault
)
zgen load blimmer/zsh-aws-vault
to your '!saved/save' blockzgen update
This plugin is pretty simple - it provides:
Alias | Expression |
---|---|
av | aws-vault |
ave | aws-vault exec |
avl | aws-vault login |
avll | aws-vault login -s |
avli | aws-vault login in private browsing window |
avs | aws-vault server |
avsh | aws-vault exec $1 -- zsh |
avp | list aws config / role ARNs |
avli
Login in Private Browsing Window
This alias is currently only supported in OSX and Linux.
This alias will open a new browser window after getting the temporary login URL for your profile.
You can specify a specific browser to handle your login URL by setting AWS_VAULT_PL_BROWSER
to the bundle name of the
browser. By default, it will pick your default URL handler in MacOS. It supports the following browsers:
AWS_VAULT_PL_BROWSER value |
Browser | Description |
---|---|---|
org.mozilla.firefox |
Firefox | Creates and/or opens a profile with the same name as your aws-vault profile. This allows for multiple profiles to be open simultaneously. |
org.mozilla.firefoxdeveloperedition |
Firefox Developer Edition | Creates and/or opens a profile with the same name as your aws-vault profile. This allows for multiple profiles to be open simultaneously. |
com.google.chrome |
Chrome | Opens a new private browsing window for the session. This allows for multiple profiles to be open simultaneously. |
com.brave.Browser |
Brave | Opens a new private browsing window for the session. This allows for multiple profiles to be open simultaneously. |
com.vivaldi.browser |
Vivaldi | Opens a new private browsing window for the session. This allows for multiple profiles to be open simultaneously. |
You can pass arbitrary parameters when launching the browser by setting the optional AWS_VAULT_PL_BROWSER_LAUNCH_OPTS
environment variable. For example, if you wanted to start new avli
browser windows maximized, you can set
AWS_VAULT_PL_BROWSER_LAUNCH_OPTS="--start-maximized"
. Refer to your browser documentation for possible options.
avsh
Create a shell for a given profile.
For example, place the relevant AWS
environment variables for your default profile by running:
avsh default
This prompt segment echos out the current aws-vault profile you're logged into. I use this for adding a segment into my custom agnoster theme.
For instance, this code:
prompt_aws_vault() {
local vault_segment
vault_segment="`prompt_aws_vault_segment`"
[[ $vault_segment != '' ]] && prompt_segment cyan black "$vault_segment"
}
Produces this segment in my prompt:
The instructions to customize the prompt vary based on the theme you use. In some cases, you'll need to create a copy of the theme file and edit it to include the prompt segment. You can check out my custom agnoster theme to see how I updated the prompt.
You can customize the prompt segment behavior by overriding these variables:
Variable Name | Default | Description |
---|---|---|
AWS_VAULT_PL_CHAR |
The character to display when logged into an aws-vault profile | |
AWS_VAULT_PL_DEFAULT_PROFILE |
default | Only show the character when logged into this profile, not the profile name |
You can override the default MFA prompt by adding the AWS_VAULT_PL_MFA
environment variable.
AWS_VAULT_PL_MFA value |
Description | Example |
---|---|---|
inline | Enter your MFA token as an additional argument to the command. |
avsh default 123456 avli default 123456
|
yubikey | Generate an MFA token from your Yubikey. See the docs for more information. |
avsh default avsh default my-yubikey-profile avli default avli default my-yubikey-profile
|