Terraform: 0.14: panic: value is marked, so must be unmarked

Created on 3 Dec 2020  ยท  2Comments  ยท  Source: hashicorp/terraform

Terraform Version

Terraform v0.14.0

Terraform Configuration Files

terraform {}

variable "test" {
  type      = object({ enabled = bool })
  default   = { enabled = false }
  sensitive = true
}

resource "local_file" "file" {
  count    = var.test.enabled ? 1 : 0
  filename = "johnny"
}

Debug Output


https://gist.github.com/lwsanty/73104e3fbe9bb5042802687c1a1c6f54

Crash Output


https://gist.github.com/lwsanty/73104e3fbe9bb5042802687c1a1c6f54

Expected Behavior


Command succeeded

Actual Behavior


panic: value is marked, so must be unmarked first

Steps to Reproduce

  • terraform init
  • terraform plan
  • Additional Context

    References

    bug confirmed v0.14

    Most helpful comment

    Thank you for reporting this! I've confirmed the issue and am working on a fix.

    All 2 comments

    Thank 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.

    Was this page helpful?
    0 / 5 - 0 ratings