4 ms·
> As soon as you're trying to do deletions, you're making assumptions that the view of the state you have is complete and total and that is usually not the case
by jacobr1 2y ago
> As soon as you're trying to do deletions, you're making assumptions that the view of the state you have is complete and total and that is usually not the case
terraform does this, which is why it tracks the its own representation of the prior global state. So when you remove a declared resource the diff against the prior state is interpreted as a delete. Note this does introduce the problem of "drift" when you have resources that are not captured in the scope of the state.
> i.e. do you want to put `linux-kernel` in your package list?
Yes. At least I want to put something like "core-packages" or "default" or similar as part of setting my explicit intent.