4 ms·
Terraform having state is a trade-off: Pros: - it can manage resources where not all information can be queried - reading state is almost always significantl
by scanr 4y ago
Terraform having state is a trade-off:
Pros:
- it can manage resources where not all information can be queried
- reading state is almost always significantly faster
- it can identify deleted resources
Cons:
- state can go out of sync
- every resource type has to implement state well while tracking changing features, so it’s fragile
- fixing broken state can be a PITA
Without making these trade-offs, terraform would only be able to support a smaller subset of the providers it currently does and perform poorly.