Introduction
When you use Terraform to create or change cloud resources, it needs to remember what it has done. This memory is called the state. State operations help Terraform keep track of your resources so it can update or delete them correctly later.
When you want Terraform to know which resources it has already created in your cloud account.
When you need to update existing resources without accidentally creating duplicates.
When you want to destroy resources cleanly and not leave unused parts behind.
When multiple people work on the same infrastructure and need to share the resource information.
When you want to see what changes Terraform plans to make before applying them.