2020-03-12 17:00:00 +01:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
bar-test = {
|
|
|
|
source = "bar/test"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "bar-test" {}
|
2020-03-16 19:36:16 +01:00
|
|
|
|
|
|
|
resource "test_instance" "explicit" {
|
|
|
|
// explicitly setting provider bar-test
|
|
|
|
provider = bar-test
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|