mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-23 15:02:05 -04:00
It is possible, say with multiple layers of sensitive variables, to "double-mark" a variable. Add a check to ensure this does not happen.
14 lines
211 B
HCL
14 lines
211 B
HCL
variable "foo" {
|
|
type = string
|
|
}
|
|
|
|
// "bar" is defined as sensitive by both the parent and the child
|
|
variable "bar" {
|
|
sensitive = true
|
|
}
|
|
|
|
resource "aws_instance" "foo" {
|
|
foo = var.foo
|
|
value = var.bar
|
|
}
|