github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/not-internal/configs/testdata/valid-modules/nested-providers-fqns/child/main.tf (about)

     1  terraform {
     2    required_providers {
     3      bar-test = {
     4        source = "bar/test"
     5      }
     6      foo-test = {
     7        source = "foo/test"
     8        configuration_aliases = [foo-test.other]
     9      }
    10    }
    11  }
    12  
    13  resource "test_instance" "explicit" {
    14    // explicitly setting provider bar-test
    15    provider = bar-test
    16  }
    17  
    18  resource "test_instance" "implicit" {
    19    // since the provider type name "test" does not match an entry in
    20    // required_providers, the default provider "test" should be used
    21  }
    22  
    23  resource "test_instance" "other" {
    24    provider = foo-test.other
    25  }