From 93f9cff99ffbb8d536b276a1be40a2c45ca4a67f Mon Sep 17 00:00:00 2001 From: Amanda B <71290933+amandabasara@users.noreply.github.com> Date: Mon, 27 Feb 2023 12:22:07 -0500 Subject: [PATCH] Adding provider constraint best practice statement (#32697) * Adding provider constraint best practice Originally communicated here, this statement is missing in newer docs. https://developer.hashicorp.com/terraform/language/v1.1.x/configuration-0-11/providers?ajs_aid=3cf1bdca-a598-4dc5-b074-6064b276abb6&_gl=1*xuizrx*_ga*MTM1ODg4NTcyMi4xNjY2MTA5NjI1*_ga_P7S46ZYEKW*MTY3NjU2OTMzNS4zMi4wLjE2NzY1Njk0MDMuMC4wLjA.&product_intent=terraform#provider-versions * Update website/docs/language/providers/index.mdx Co-authored-by: Judith Malnick --------- Co-authored-by: Judith Malnick --- website/docs/language/providers/index.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/language/providers/index.mdx b/website/docs/language/providers/index.mdx index ff65605270..500e2295d3 100644 --- a/website/docs/language/providers/index.mdx +++ b/website/docs/language/providers/index.mdx @@ -55,6 +55,8 @@ see the [provider publishing documentation](/terraform/registry/providers/docs). ## How to Use Providers +Providers are released separately from Terraform itself, and have their own version numbers. In production we recommend constraining the acceptable provider versions in the configuration's provider requirements block, to make sure that `terraform init` does not install newer versions of the provider that are incompatible with the configuration. + To use resources from a given provider, you need to include some information about it in your configuration. See the following pages for details: