2020-03-12 17:00:00 +01:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
bar-test = {
|
|
|
|
source = "bar/test"
|
|
|
|
}
|
2021-04-16 18:37:50 +02:00
|
|
|
foo-test = {
|
|
|
|
source = "foo/test"
|
|
|
|
configuration_aliases = [foo-test.other]
|
|
|
|
}
|
2020-03-12 17:00:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
2021-04-16 18:37:50 +02:00
|
|
|
|
|
|
|
resource "test_instance" "other" {
|
|
|
|
provider = foo-test.other
|
|
|
|
}
|