Files
opentf/terraform/testdata/plan-variable-sensitivity-module/child/main.tf
Pam Selle 12b5d437da Avoid double-marking variables
It is possible, say with multiple layers of
sensitive variables, to "double-mark" a variable.
Add a check to ensure this does not happen.
2020-12-04 13:10:02 -05:00

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
}