Interview Prep/Terraform/State Internals

What does the state file contain?

BeginnerConceptState Internals
Answer

For every managed resource: its address, provider, the real resource ID, all attribute values (including computed ones and secrets) and dependencies. It also records outputs, the Terraform version and a serial and lineage for consistency. Treat it as sensitive data, not just metadata.

All Terraform questions Roadmap: Terraform in production

More on State Internals