← Back to context

Comment by Hamuko

4 days ago

Does it do ephemeral values yet?

Yep, as of yesterday’s 1.11 release it’s supported!

That also includes a new “enabled” meta argument, so you don’t have to hack around conditional resources with count = 0.

[0]: https://opentofu.org/blog/opentofu-1-11-0/

Disclaimer: affiliated with the project

  • How do you migrate from count/for_each to `enabled` ?

    • You can just switch from `count = 1` to `enabled = true` (or vice-versa, works back-and-forth) for a resource and tofu will automatically move it next time you apply.

      It's pretty seamless.

      6 replies →

  • Damn, might finally be able to use it. The lack of ephemeral values was a major blocker.