github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/testdata/show-json/provider-aliasing/child/main.tf (about) 1 terraform { 2 required_providers { 3 test = { 4 source = "hashicorp/test" 5 configuration_aliases = [test, test.second] 6 } 7 } 8 } 9 10 resource "test_instance" "test_primary" { 11 ami = "primary" 12 provider = test 13 } 14 15 resource "test_instance" "test_secondary" { 16 ami = "secondary" 17 provider = test.second 18 } 19 20 module "grandchild" { 21 source = "./nested" 22 providers = { 23 test = test 24 test.alt = test.second 25 } 26 }