20 lines
242 B
Terraform
20 lines
242 B
Terraform
|
provider "test" {
|
||
|
region = "somewhere"
|
||
|
}
|
||
|
|
||
|
provider "test" {
|
||
|
alias = "backup"
|
||
|
region = "elsewhere"
|
||
|
}
|
||
|
|
||
|
resource "test_instance" "test" {
|
||
|
ami = "foo"
|
||
|
}
|
||
|
|
||
|
module "child" {
|
||
|
source = "./child"
|
||
|
providers = {
|
||
|
test = test.backup
|
||
|
}
|
||
|
}
|