Re:Manipulating Terraform states for fun, profit, and reusab...
by nazarewk on Tuesday August 22, 2023 @06:12PM
(#37229245)
Does it come with flattening modules and being able to merge/patch resources or child module's resources?
I fiddled with the idea of recreating this with terranix, but kind of lost interest after license changes.
The basic motivation is to adjust/extend 3rd party modules without forking them.
I sort of fail to see why one just can't write reusable Terraform modules already to accomplish the same. If you don't want someone modifying a base layer, than that is achieved with OWNERS files for source control, and role-based access control for the identifies/credentials, for the underlying infra services, used by the Terraform plan.
But for those familiar with Kubernetes already, it is essentially Kustomize [1] for Terraform. Although if you are using Kubernetes already, the alternative is to write an Operator yourself to create a self-serve environment provisioner. That way the operators have their own service accounts, roles, and secrets. And quotas/rate limits can be achieved through admission control. Existing way for reporting to know that things failed to deploy, and so on...
[1] https://kustomize.io