4 ms·
Yes terraform and ansible have different sweet spots. Terraform is best when managing stateless resources. It can handle stateful resources, but as always man
by diroussel 6y ago
Yes terraform and ansible have different sweet spots. Terraform is best when managing stateless resources. It can handle stateful resources, but as always managing state gets tricky fast.
If what you are CRUD-ing doesn't map well to the terraform concept of a resource, then don't use it. SO i don't like to use to create anaything inside a VM.
Using terraform to create an auto-scaling group is good, though, as it can be represented as a stateless resouce. Or rather any state in it is transient.