diff --git a/terraform/gen/referencedocs.go.tpl b/terraform/gen/referencedocs.go.tpl index a91020f3d..3fa0cc601 100644 --- a/terraform/gen/referencedocs.go.tpl +++ b/terraform/gen/referencedocs.go.tpl @@ -20,7 +20,7 @@ Add the following configuration section to your `terraform` configuration block: terraform { required_providers { teleport = { - version = ">= (=teleport.version=)" + version = "~> (=teleport.major_version=).0" source = "terraform.releases.teleport.dev/gravitational/teleport" } } @@ -76,4 +76,4 @@ Example: ``` {{$resource.Example}} ``` -{{end}} \ No newline at end of file +{{end}} diff --git a/terraform/reference.mdx b/terraform/reference.mdx index 60134ba70..d373d7d72 100755 --- a/terraform/reference.mdx +++ b/terraform/reference.mdx @@ -36,7 +36,7 @@ Add the following configuration section to your `terraform` configuration block: terraform { required_providers { teleport = { - version = ">= (=teleport.version=)" + version = "~> (=teleport.major_version=).0" source = "terraform.releases.teleport.dev/gravitational/teleport" } } @@ -2373,3 +2373,4 @@ resource "teleport_user" "example" { } } ``` +