DEV Community

Discussion on: Automating your infrastructure deployments

Collapse
 
krogebry profile image
Bryan Kroger

Yeah, whatever makes the business work, right? I think my big hangup with TF is that it's basically throwing away the last 20 years of programming knowledge in favor of something that avoids "crazy" things like for loops and control statements.

When I use CF, I'm importing JSON chunks into the environment ( usually ruby ), then manipulating the data structures to create an outcome that matches my desired state. With this model I can do things like have isolated stacks of infrastructure, which you can't do with TF.

I like the isolated stacks thing because it allows me to yank an entire stack out of existence without having to worry ( mostly :) ) about artifacts that might be left over. This also allows me to create an entirely new silo of things that I know works together. I don't get that same kind of thing with TF.

Honestly, I'm just baffled that people would choose such an ineloquent solution to such a beautiful problems space as IaC.

Thread Thread
 
fedekau profile image
Federico Kauffman

That is a perfectly valid way of thinking ☺. In some cases I would definetly choose your approach. It is important to know all the possibilities, or at least a good chunk of them.

Cheers 🍻