Difference between revisions of "Explain the benefits of state"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
 
Is stored by default in a local file named [[terraform.tfstate]].
 
Is stored by default in a local file named [[terraform.tfstate]].
 
  
 
* <code>[[terraform import]]</code>
 
* <code>[[terraform import]]</code>
 
* <code>[[terraform state rm]]</code>
 
* <code>[[terraform state rm]]</code>
 +
  
 
=== Purpose ===
 
=== Purpose ===

Revision as of 04:34, 21 February 2022

Terraform must store state about your managed infrastructure and configuration. This state is used by Terraform to map real world resources to your configuration, keep track of metadata, and to improve performance for large infrastructures. [1]

Is stored by default in a local file named terraform.tfstate.


Purpose

  • Mapping the Real World
  • Metadata
  • Syncing


Questions examples

Exercise

See also

  • https://www.terraform.io/language/state
  • Advertising: