terraform-up-and-running-code
terraform-up-and-running-code copied to clipboard
Error: Unsupported Terraform Core version
- 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
Ah, good point. You could probably do:
brew install [email protected]
Or use tfenv.
I'll include this in the next edition, thanks!