mirror of https://github.com/hashicorp/terraform
stacks: Fix unknown provider values crashing validation phase (#35155)
* test to reproduce * stacks: Fix unknown provider values crashing validation phase * remove extra type information --------- Co-authored-by: CJ Horton <cjhorton@hashicorp.com>pull/35171/head
parent
3845aa1a7d
commit
7a8ffff66e
@ -0,0 +1,32 @@
|
||||
required_providers {
|
||||
testing = {
|
||||
source = "hashicorp/testing"
|
||||
version = "0.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
variable "provider_set" {
|
||||
type = set(string)
|
||||
default = ["a", "b"]
|
||||
}
|
||||
|
||||
provider "testing" "configurations" {
|
||||
for_each = var.provider_set
|
||||
}
|
||||
|
||||
variable "input" {
|
||||
type = string
|
||||
}
|
||||
|
||||
component "self" {
|
||||
source = "../"
|
||||
for_each = var.provider_set
|
||||
|
||||
providers = {
|
||||
testing = provider.testing.configurations[each.value]
|
||||
}
|
||||
|
||||
inputs = {
|
||||
input = var.input
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue