31 lines
No EOL
1.6 KiB
Markdown
31 lines
No EOL
1.6 KiB
Markdown
---
|
|
description: l'exemple StateGraph
|
|
---
|
|
# State Graph
|
|
## use case
|
|
|
|
Stategraph is a state management and visualization system for Terraform and OpenTofu. It replaces the flat state file (and the whole-state lock that comes with it) with a dependency graph of your infrastructure, stored on a server you can query, lock at the resource level, and reason about.
|
|
|
|
You keep writing normal Terraform. Stategraph changes where your state lives and what you can do with it.
|
|
Why Stategraph
|
|
|
|
A typical Terraform setup keeps state as a single blob in S3. That has two costs:
|
|
|
|
One lock per state. Any apply locks the entire state, so your team's changes serialize — even when they touch completely unrelated resources.
|
|
No visibility. The state is an opaque JSON file. There is no good way to ask "what depends on this?", "what would this change affect?", or "what is this costing me?".
|
|
|
|
## stategraph
|
|
https://stategraph.com/docs/getting-started/introduction
|
|
|
|
Un graphe d'états.
|
|
Stategraph is a state management and visualization system for terraform.
|
|
|
|
En fait c'est ce que je veux faire pour baklava avec avec rougail...
|
|
|
|
It replaces the flat state file (and the whole-state lock that comes with it) with a dependency graph of your infrastructure, stored on a server you can query, lock at the resource level, and reason about.
|
|
|
|
## Rougail ansible
|
|
https://stategraph.com/docs/inventory
|
|
|
|
Un peu comme rougail pour ansible en somme:
|
|
Inventory provides a complete catalog of your Terraform-managed infrastructure. Browse resources, modules, and types. Query your data with SQL. Build dashboards and find resources that aren't managed by Terraform. |