supraj.dev
Terraform

Terraform state

How does Terraform know which servers in my cloud it already built?

28 s loop7 sentencesSilent, read alongScene: Journey
Read the story, sentence by sentence 7 sentences

What you'll be able to say

  1. Terraform state, stored in terraform.tfstate by default, maps each resource in your configuration, like aws_instance.web, to its real object’s ID.
  2. By default, terraform plan refreshes state from the real infrastructure, compares it with your configuration, and proposes only the needed changes.
  3. Teams store state in a remote backend such as S3 or HCP Terraform, with locking where supported, and treat it as sensitive data.