github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/not-internal/configs/testdata/config-diagnostics/override-provider/main.tf (about)

     1  terraform {
     2    required_providers {
     3      bar = {
     4        version = "~>1.0.0"
     5      }
     6    }
     7  }
     8  
     9  provider "bar" {
    10    value = "not ok"
    11  }
    12  
    13  // this module configures its own provider, which cannot be overridden
    14  module "mod" {
    15    source = "./mod"
    16    providers = {
    17      bar = bar
    18    }
    19  }