| ▲ | cube2222 3 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. | |||||||||||||||||
| ▲ | joombaga 3 days ago | parent | next [-] | ||||||||||||||||
That's cool! We'll still need to change all of the references to `resource[0]`, right? Or does tofu obviate that need as well? | |||||||||||||||||
| |||||||||||||||||
| ▲ | darkwater 2 days ago | parent | prev | next [-] | ||||||||||||||||
And you don't get the annoying array form for the resulting resource with the `enabled` syntax, right? EDIT: Oh just realized the sibling asked the same, but the doc doesn't state that clearly, although it seems to me that the doc implies that yeah, it doesn't use the array form anymore. | |||||||||||||||||
| |||||||||||||||||
| ▲ | lijok 3 days ago | parent | prev [-] | ||||||||||||||||
Amazing. Good work ! | |||||||||||||||||