top | item 46224171 (no title) joombaga | 2 months ago 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? discuss order hn newest cube2222|2 months ago I’m not sure I understand. You refer to the conditional resource fields normally - without list indices. You just have to make sure the object isn’t null.There’s some samples in the docs[0] on safe access patterns![0]: https://opentofu.org/docs/language/meta-arguments/enabled/
cube2222|2 months ago I’m not sure I understand. You refer to the conditional resource fields normally - without list indices. You just have to make sure the object isn’t null.There’s some samples in the docs[0] on safe access patterns![0]: https://opentofu.org/docs/language/meta-arguments/enabled/
cube2222|2 months ago
There’s some samples in the docs[0] on safe access patterns!
[0]: https://opentofu.org/docs/language/meta-arguments/enabled/