On https://learn.hashicorp.com/tutorials/terraform/provider-use?in=terraform/providers#initialize-workspace
The snippet has versions = ["0.2"]
in required_providers
that threw an error when running terraform init
.
It should be like version = "~> 0.2"
?
Since it’s a tutorial document, it better to corrected it.
Hi @hokugawa,
Indeed, the tutorial seems to be incorrect here. version
is the correct argument name. I’ll send this feedback to the team who maintains the tutorials and hopefully they can correct it. Thanks for reporting it!
Also, similar lines are in the github repo.
e.g.
Thanks
1 Like