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/with-write-only-attribute/with-write-only-attribute.tf

33 lines
562 B

terraform {
required_providers {
testing = {
source = "hashicorp/testing"
version = "0.1.0"
}
}
}
variable "datasource_id" {
type = string
}
variable "resource_id" {
type = string
}
variable "write_only_input" {
type = string
sensitive = true
}
data "testing_write_only_data_source" "data" {
id = var.datasource_id
write_only = var.write_only_input
}
resource "testing_write_only_resource" "data" {
id = var.resource_id
value = data.testing_write_only_data_source.data.value
write_only = var.write_only_input
}