Ephemeral write only attributes (#3171)

Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Andrei Ciobanu
2025-08-25 13:57:11 +03:00
committed by Christian Mesh
parent cbe16d3a5d
commit 7f76707dd0
29 changed files with 2389 additions and 89 deletions

View File

@@ -1,10 +1,12 @@
variable "in" {
type = string
type = string
description = "Variable that is marked as ephemeral and doesn't matter what value is given in, ephemeral or not, the value evaluated for this variable will be marked as ephemeral"
ephemeral = true
ephemeral = true
}
output "out1" {
value = var.in
ephemeral = true // NOTE: because
value = var.in
// NOTE: because this output gets its value from referencing an ephemeral variable,
// it needs to be configured as ephemeral too.
ephemeral = true
}