You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/stacks/stackruntime/testdata/mainbundle/test/invalid-local/invalid-local.tfcomponent.hcl

32 lines
544 B

required_providers {
testing = {
source = "hashicorp/testing"
version = "0.1.0"
}
}
provider "testing" "main" {}
variable "in" {
type = object({
name = string
})
}
locals {
# This is not caught during the config evaluation but only when we try to
# evaluate this value during planning / applying.
invalid_local = { for k, v in var.in : k => v + 3 }
}
component "self" {
source = "./"
inputs = {
name = "example#{local.invalid_local}"
}
providers = {
testing = provider.testing.main
}
}