Earlier quoted context omitted.
Hello, Stategraph developer here, the answer is: probably not. That doesn't resolve the core issue of state being managed as a big blob.
but that big blob is a database. surely it's better than a json file right?
Stategraph: Terraform state as a distributed systems problem
31–40 of 68 posts
Re: Stategraph: Terraform state as a distributed systems problem
#32Re: Stategraph: Terraform state as a distributed systems problem
#33This is very cool. I love the idea of querying the state, and it opens up a ton of very easy reporting options.
Re: Stategraph: Terraform state as a distributed systems problem
#34How does this compare with Pulumi? AFAIK they also don't have a state file and relay on an external database to store state. Is your locking granularity better?
I mean take this with a grain of salt and purely anecdotal; but everywhere I've heard of who chose pulumi over tf are no long using pulumi. I'd love to hear some opposing experiences to that though!
Re: Stategraph: Terraform state as a distributed systems problem
#35Re: Stategraph: Terraform state as a distributed systems problem
#36Re: Stategraph: Terraform state as a distributed systems problem
#37If you're at the point of managing thousands of resources inside a single statefile, and that makes the most sense to your setup: you've outgrown terraform.
At scale the choices are pretty simple. You split state and live with orchestration glue. You move to a controller model and take on the operational overhead (see Crossplane). Or you keep a cohesive graph and fix the state layer. Those are the real options (imo). It's not about outgrowing Terraform.
Re: Stategraph: Terraform state as a distributed systems problem
#38Team A manages VPCs and Security groups, for example.
Team B manages autoscaling groups, EC2, etc.
It's great that now the two teams can look after their own things and not be too worried about resource contention with the other team. But if it's a centralized Postgres database (as you seem to be suggesting?) and both teams have write access to it...
How do we prevent teams from making changes to stuff that isn't "theirs" ?
And if the answer is "well this team only has IAM access to resources xyz", well then might it be a little tricky to represent the Stategraph DAG permission boundaries in IAM policy?
(ps: huge fan of terrateam's offerings -- Alex from tfstate.com)
Re: Stategraph: Terraform state as a distributed systems problem
#39I'm wondering how access controls play into this. Team A manages VPCs and Security groups, for example. Team B manages autoscaling groups, EC2, etc. It's great that now the two teams can look after their own things and not be too worried about resource contention with the other team. But if it's a centralized Postgres database (as you seem to be suggesting?) and both teams have write access to it... How do we prevent…