/terraform-zsh-plugin

ZSH plugin to easier work with terraform

Primary LanguageShellMIT LicenseMIT

terraform-zsh-plugin

Plugin for Terraform, extending the original oh-my-zsh plugin with aliases and autocompletion.

Terraform is a tool from Hashicorp for managing infrastucture as code in secure and efficient way.

Requiremants

Installation

Oh My Zsh

  1. Clone repository into ${ZSH_CUSTOM}/plugins (by default $ZSH_CUSTOM points to ~/.oh-my-zsh/custom)
git clone https://github.com/jsporna/terraform-zsh-plugin \
    ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/terraform
  1. Add te plugin to the list of plugins in ~/.zshrc for Oh My Zsh to load:
plugins=(... terraform)
  1. Start new terminal session.

Usage

  • Type terraform or tf into your prompt and hit TAB to see available completion options
  • When you type at the -target option it show the list of resources