terraform-up-and-running-code icon indicating copy to clipboard operation
terraform-up-and-running-code copied to clipboard

Error: Unsupported Terraform Core version

Open mpatters72 opened this issue 3 years ago • 1 comments

  • Book instructions for macOS state brew install terraform
  • That currently installs 0.14.7 version
  • 00-preface/hello-world main.tf required_version = ">= 0.12, < 0.13"
  • It would be nice to provide a suggested workaround if it is impractical to update examples (ideally 0.15 and onward compatible.

e.g.

#Find and download latest compatible 0.12.x version and alias it (as opposed to install since you probably don't want an old binary, when you start your own build out)
https://releases.hashicorp.com/terraform/

alias terraform=/Users/mpatters/bin/terraform-0.12.30
terraform -version
Terraform v0.12.30
+ provider.aws v2.70.0

mpatters72 avatar Apr 06 '21 18:04 mpatters72

Ah, good point. You could probably do:

brew install [email protected]

Or use tfenv.

I'll include this in the next edition, thanks!

brikis98 avatar Apr 07 '21 07:04 brikis98