Terraform v0.14.0
terraform {}
variable "test" {
type = object({ enabled = bool })
default = { enabled = false }
sensitive = true
}
resource "local_file" "file" {
count = var.test.enabled ? 1 : 0
filename = "johnny"
}
https://gist.github.com/lwsanty/73104e3fbe9bb5042802687c1a1c6f54
https://gist.github.com/lwsanty/73104e3fbe9bb5042802687c1a1c6f54
Command succeeded
panic: value is marked, so must be unmarked first
terraform initterraform planThank you for reporting this! I've confirmed the issue and am working on a fix.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
Thank you for reporting this! I've confirmed the issue and am working on a fix.