What Is the State File For?
Why does Terraform keep a state file?
Choose one answer
To store the user's cloud password.
To map resources in the configuration to real-world objects (IDs) and track metadata, so Terraform knows what it manages and what to change.
To store the provider's source code.
It is only a cache and can be deleted at any time without consequences.