Merge pull request #28840 from hashicorp/revert-latest-commit

Revert "mclarify specifying provider versions"
This commit is contained in:
Chris Arcand 2021-05-28 19:55:34 -05:00 committed by GitHub
commit 7162902b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,7 @@ from their parents.
<a id="provider-versions"></a>
## `version` (Deprecated)
## `version`: An Older Way to Manage Provider Versions
[inpage-versions]: #provider-versions
@ -193,6 +193,11 @@ constraint in a provider configuration is only used if `required_providers`
does not include one for that provider.
**The `version` argument in provider configurations is deprecated.**
In Terraform 0.13 and later, always declare provider version constraints in
In Terraform 0.13 and later, version constraints should always be declared in
[the `required_providers` block](/docs/language/providers/requirements.html). The `version`
argument will be removed in a future version of Terraform.
-> **Note:** The `version` meta-argument made sense before Terraform 0.13, since
Terraform could only install providers that were distributed by HashiCorp. Now
that Terraform can install providers from multiple sources, it makes more sense
to keep version constraints and provider source addresses together.