Using an array as data structure results in constant data reshuffle in the tofu state, when the index changes. Using a map requires un setting explicit key names, but also creates stability in the tofu state.
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T370037 Cloud VPS: extend tofu-infra coverage | |||
| Resolved | • aborrero | T375283 tofu-infra: refactor repo structure | |||
| Resolved | • aborrero | T392799 tofu-infra: re-implement security group rules as a map instead of array |
Event Timeline
Comment Actions
aborrero opened https://gitlab.wikimedia.org/repos/cloud/cloud-vps/tofu-infra/-/merge_requests/219
tofu-infra: re-implement security group rules as a map instead of array
Comment Actions
taavi merged https://gitlab.wikimedia.org/repos/cloud/cloud-vps/tofu-infra/-/merge_requests/219
tofu-infra: re-implement security group rules as a map instead of array
Comment Actions
Mentioned in SAL (#wikimedia-cloud) [2025-04-28T11:21:44Z] <taavi> migrating opentofu managed default security group rules T392799