What is Terraform state, and why is it needed?
IntermediateConceptTerraform and Ansible
Answer
State maps resources in your code to real resource IDs and stores their attributes. Terraform uses it to plan diffs. Keep it remote, locked and encrypted, because it can contain secrets.