mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 18:33:08 -04:00
* write-only attributes: internal providers should set write-only attributes to null * add changelog * fix copywrite headers
32 lines
562 B
HCL
32 lines
562 B
HCL
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
|
|
}
|