github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/configs/testdata/provider-reqs/provider-reqs-root.tf (about) 1 terraform { 2 required_providers { 3 null = "~> 2.0.0" 4 random = { 5 version = "~> 1.2.0" 6 } 7 tls = { 8 source = "hashicorp/tls" 9 version = "~> 3.0" 10 } 11 } 12 } 13 14 # There is no provider in required_providers called "implied", so this 15 # implicitly declares a dependency on "hashicorp/implied". 16 resource "implied_foo" "bar" { 17 } 18 19 module "kinder" { 20 source = "./child" 21 } 22 23 # There is no provider in required_providers called "terraform", but for 24 # this name in particular we imply terraform.io/builtin/terraform instead, 25 # to avoid selecting the now-unmaintained 26 # registry.terraform.io/hashicorp/terraform. 27 data "terraform_remote_state" "bar" { 28 } 29 30 # There is no provider in required_providers called "configured", so the version 31 # constraint should come from this configuration block. 32 provider "configured" { 33 version = "~> 1.4" 34 }