Is versions parameter valid for required_parameters?

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.


1 Like