github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/configs/testdata/config-diagnostics/pass-inherited-provider/mod/main.tf (about)

     1  terraform {
     2    required_providers {
     3      test = {
     4        source = "hashicorp/test"
     5      }
     6    }
     7  }
     8  
     9  module "mod2" {
    10    source = "./mod2"
    11  
    12    // the test provider is named here, but a config must be supplied from the
    13    // parent module.
    14    providers = {
    15      test.foo = test
    16    }
    17  }