terraform/internal/stacks/stackruntime/testdata/mainbundle/test/with-write-only-attribute/with-write-only-attribute.tfstack.hcl
Liam Cervante 7fadbe34de
write-only attributes: internal providers should set write-only attributes to null (#36824)
* write-only attributes: internal providers should set write-only attributes to null

* add changelog

* fix copywrite headers
2025-04-02 15:58:42 +02:00

28 lines
419 B
HCL

required_providers {
testing = {
source = "hashicorp/testing"
version = "0.1.0"
}
}
variable "providers" {
type = set(string)
}
provider "testing" "main" {
for_each = var.providers
}
component "main" {
source = "./"
providers = {
testing = provider.testing.main["single"]
}
inputs = {
datasource_id = "datasource"
resource_id = "resource"
write_only_input = "secret"
}
}