Plugin for Terragrunt, a thin wrapper for Terraform that provides extra tools.
Current as of Terraform v0.18.3
- Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/hanjunlee/terragrunt-oh-my-zsh-plugin ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/terragrunt- Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=(terragrunt)- Start a new terminal session.
-
When you typed
terragruntinto your prompt and hitTABto see available completion options -
When you typed
-targetoption into your prompt and hitTABto see available resource list.
$ terragrunt plan -target # hit TAB
aws_db_instance.baz aws_iam.bar aws_iam.foo
... # show resource list- Alias
terragruntcommand astg.
If you want to get current Terraform workspace name in your ZSH prompt open your .zsh-theme file and in a chosen place insert:
$FG[045]\
$(tg_prompt_info)\