3 ms·
Yeah the tfstate was a big gotcha. Pulumi has the same problems. What we really need is automatic reconciliation. I.e ask the provider what they have and then
by nojvek 5y ago
Yeah the tfstate was a big gotcha. Pulumi has the same problems.
What we really need is automatic reconciliation. I.e ask the provider what they have and then diff against that.
Or periodically auto-importing.
Are there any good solutions to auto-importing?
- arpinum 5y agoThe hard part with auto-importing is the resource id. This is usually generated server-side and is not included in the hcl. Often resources define a user-supplied identifier as well, such as a name property, and this could be used for auto-importing if the property has unique constraints applied against it. However, not all resources have this feature, so its not a universal solution.
- kall 5y agoHm, maybe what we really need is a new entrant in hyperscale clouds that is built from the ground up for IaC and just does away with the split between state and reality. I would love to see one, anyway.
- robertlagrant 5y agoWhat's the point of reimporting? Aren't you then no longer separating desired state from actual?