Skip to content

Instantly share code, notes, and snippets.

@roz0n
Created February 1, 2021 20:39
Show Gist options
  • Save roz0n/5063b10523fc23862e2102b77976358f to your computer and use it in GitHub Desktop.
Save roz0n/5063b10523fc23862e2102b77976358f to your computer and use it in GitHub Desktop.
# Terraform General Tips/Tricks

Terraform General Tips/Tricks

Installing on MacOS with Homebrew

# tap it
brew tap hashicorp/tap
# install it
brew install hashicorp/tap/terraform
# upgrade it
brew upgrade hashic orp/tap/terraform
# enable tab completion
terraform -install-autocomplete 
# verify it
terraform -help

Official Tutorials

There's a good series of intro tutorials, if you're completely new to Terriform, here

And a great discussion around using Terraform with AWS (and its modules feature) can be found here

Useful Commands

To see a dry run of what terraform would execute/change run: terraform plan

To automatically standardize the format of Terraform files *.tf in your current directory, you can run: terraform fmt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment