Files
opentf/terraform/testdata/plan-variable-sensitivity/main.tf
Pam Selle 4034cf9f75 Add basic plan test coverage
This also unearthed that the marking must happen
earlier in the eval_diff in order to produce a valid plan
(so that the planned marked value matches the marked config
value)
2020-09-10 16:06:37 -04:00

12 lines
187 B
HCL

terraform {
experiments = [sensitive_variables]
}
variable "sensitive_var" {
default = "foo"
sensitive = true
}
resource "aws_instance" "foo" {
foo = var.sensitive_var
}