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