Re:Terraform should have remained stateless
by zoul on Sunday May 29, 2022 @03:16AM
(#31547131)
You could, but then you are losing what I think is the main point of TF – describing what the infra should look like and letting the tool figure out what the necessary steps are for reaching that state.
[ Parent
| on HN ]
Re:Terraform should have remained stateless
by runlevel1 on Sunday May 29, 2022 @12:52PM
(#31550594)
It can still be declarative for the things that it manages.
Perhaps Puppet would have been the better analogy (i.e. `ensure => absent`).
While Terraform providers can be built to do a lot of implicit work, in practice they don't. In my experience, you still have to specify all the pieces.
The only place I can think of where auto-deletion came in handy was for infrastructure CI. However, that CI pipeline doesn't catch many critical issues, and it's very expensive to operate. So I can't say it's been a total win.