github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/not-internal/configs/testdata/valid-modules/implied-providers/providers.tf (about) 1 terraform { 2 required_providers { 3 // This is an expected "real world" example of a community provider, which 4 // has resources named "foo_*" and will likely be used in configurations 5 // with the local name of "foo". 6 foo = { 7 source = "registry.acme.corp/acme/foo" 8 } 9 10 // However, implied provider lookups are based on local name, not provider 11 // type, and this example clarifies that. Only resources with addresses 12 // starting "whatever_" will be assigned this provider implicitly. 13 // 14 // This is _not_ a recommended usage pattern. The best practice is for 15 // local name and type to be the same, and only use a different local name 16 // if there are provider type collisions. 17 whatever = { 18 source = "acme/something" 19 } 20 } 21 }