concept state file in category docker
appears as: state file, state file

This is an excerpt from Manning's book Bootstrapping Microservices with Docker, Kubernetes and Terraform.
You can see that our Terraform state file has one item in the resources field. The details of the resource group we just created were recorded in this state file.
The first time we invoked Terraform apply, the state file is generated (we saw this earlier in sections 6.8.4 and 6.8.5). Subsequent invocations of Terraform use the state file as input. Terraform loads the state file and then refreshes it from the live infrastructure. Figure 6.10 shows how successive invocations of Terraform are connected by both the live infrastructure and the state file.