Switch Versions

Introduction

Sometimes you come to a point where terraform tells you that you need a specific version. This might happen, if you connect a Terraform project to an already existing Terraform workspace that has an older Terraform version in use.

Switch local terraform version

To easily switch your local terraform version install tfswitch:

brew install warrensbox/tap/tfswitch

List available terraform versions and pick the desired one:

tfswitch -l