Benefits of State
Learn about Terraform state and its benefits.
We'll cover the following
The creation and manipulation of resources managed by Terraform need to be tracked in some
manner. Terraform achieves this through the implementation of state. When a resource is created, such as an EC2 instance in AWS, Terraform creates an entry in the state that maps the metadata about
the resource (such as instance-id
) to key/value pairs in the entry. The tracking of resource metadata
serves multiple functions.
Get hands-on with 1400+ tech skills courses.