github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/testdata/show-json/provider-aliasing/main.tf (about) 1 provider "test" { 2 region = "somewhere" 3 } 4 5 provider "test" { 6 alias = "backup" 7 region = "elsewhere" 8 } 9 10 resource "test_instance" "test" { 11 ami = "foo" 12 provider = test 13 } 14 15 resource "test_instance" "test_backup" { 16 ami = "foo-backup" 17 provider = test.backup 18 } 19 20 module "child" { 21 source = "./child" 22 providers = { 23 test = test 24 test.second = test.backup 25 } 26 } 27 28 module "sibling" { 29 source = "./child" 30 providers = { 31 test = test 32 test.second = test 33 } 34 }