hashicorp / learn-terraform-provider-versioning

https://learn.hashicorp.com/tutorials/terraform/provider-versioning
Mozilla Public License 2.0
16 stars 54 forks source link

Update terraform's required version with ~> #4

Closed dhwaneel closed 2 years ago

dhwaneel commented 2 years ago

Tutorial terraform.tf is not in line with explanation where it mentions use if ~> https://learn.hashicorp.com/tutorials/terraform/provider-versioning?in=terraform/certification-associate-tutorials. Also, changing it to using ~> 1.1.0 produces error: │ Error: Unsupported Terraform Core version │ │ on terraform.tf line 23, in terraform: │ 23: required_version = "~> 1.1.0" │ │ This configuration does not support Terraform version 1.0.2. To proceed, either choose another supported │ Terraform version or update this version constraint. Version constraints are normally set for good reason, │ so updating the constraint may lead to other errors or unexpected behavior.

hashicorp-cla commented 2 years ago

CLA assistant check
All committers have signed the CLA.

judithpatudith commented 2 years ago

Hi, thanks for the PR! I'm putting it on our team's to-do list now to review!

ritsok commented 2 years ago

Hi @dhwaneel, thanks for submitting this PR.

We do want the version constraint to be >= 1.1 to support users who use the cloud block in their configuration. Based on the error message you provided, you will need to upgrade your local version of Terraform to complete this tutorial. I'll update the accompanying tutorial text to make note of the correct version constraint operator.