← Back to context Comment by Hamuko 4 days ago Does it do ephemeral values yet? 10 comments Hamuko Reply cube2222 4 days ago 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 lijok 4 days ago How do you migrate from count/for_each to `enabled` ? cube2222 4 days ago 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 → Hamuko 4 days ago Damn, might finally be able to use it. The lack of ephemeral values was a major blocker.
cube2222 4 days ago 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 lijok 4 days ago How do you migrate from count/for_each to `enabled` ? cube2222 4 days ago 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 → Hamuko 4 days ago Damn, might finally be able to use it. The lack of ephemeral values was a major blocker.
lijok 4 days ago How do you migrate from count/for_each to `enabled` ? cube2222 4 days ago 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 →
cube2222 4 days ago 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 →
Hamuko 4 days ago Damn, might finally be able to use it. The lack of ephemeral values was a major blocker.
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.