github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/not-internal/configs/testdata/valid-modules/nested-providers-fqns/main.tf (about) 1 terraform { 2 required_providers { 3 foo-test = { 4 source = "foo/test" 5 } 6 } 7 } 8 9 provider "foo-test" {} 10 11 module "child" { 12 source = "./child" 13 providers = { 14 foo-test.other = foo-test 15 } 16 } 17 18 resource "test_instance" "explicit" { 19 provider = foo-test 20 } 21 22 data "test_resource" "explicit" { 23 provider = foo-test 24 } 25 26 resource "test_instance" "implicit" { 27 // since the provider type name "test" does not match an entry in 28 // required_providers, the default provider "test" should be used 29 }