by GeneralMayhem · 4y ago · 0 comments
current_tables {
TableA {
Column1[string]
Column2[bool]
}
}
removed_tables: ["TableOld", "AnotherOldTable", ...]
Depending on your ergonomic preferences, you could also accomplish that by keeping the old table configs and adding an "is_deleted" flag. And once you've done one deploy, you can delete all the old tombstoned configs.The whole idea of TF is to not have to declare an absent resource for it to be destroyed, because the declarative approach already have the desired state.