5
Managing Terraform State
One of the most important artifacts of Terraform is the Terraform state file. Terraform state is the file that contains all the configuration that has been applied during the Terraform workflow.
Since the Terraform State file is not necessarily a physical file but can also be in blob object format, for example, throughout this chapter, we will use the term Terraform State to refer to the Terraform State file.
For more information about Terraform State file, read the documentation overview here: https://developer.hashicorp.com/terraform/language/state.
In most situations, we don’t need to interact with it directly. However, you may need to manipulate it either to view its information, delete resources, import resources, ...
Get Terraform Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.