2020-03-12 17:00:00 +01:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
foo-test = {
|
|
|
|
source = "foo/test"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "foo-test" {}
|
|
|
|
|
|
|
|
module "child" {
|
|
|
|
source = "./child"
|
2021-04-16 18:37:50 +02:00
|
|
|
providers = {
|
|
|
|
foo-test.other = foo-test
|
|
|
|
}
|
2020-03-12 17:00:00 +01:00
|
|
|
}
|
2020-03-16 19:36:16 +01:00
|
|
|
|
|
|
|
resource "test_instance" "explicit" {
|
|
|
|
provider = foo-test
|
|
|
|
}
|
|
|
|
|
2020-03-18 13:58:20 +01:00
|
|
|
data "test_resource" "explicit" {
|
|
|
|
provider = foo-test
|
|
|
|
}
|
|
|
|
|
2020-03-16 19:36:16 +01:00
|
|
|
resource "test_instance" "implicit" {
|
|
|
|
// since the provider type name "test" does not match an entry in
|
|
|
|
// required_providers, the default provider "test" should be used
|
|
|
|
}
|