Ad space (banner)
AD

Got the fundamentals? A structured Terraform course is a fast way to level up.

Find Terraform courses on Udemy

Affiliate link. Costs you nothing extra.

Lesson 30 / 37

What Is a Remote Backend?

A backend decides where state is stored. The default is a local file; a remote backend puts it somewhere shared instead.

Common choices are an S3 bucket (with DynamoDB for locking) or Terraform Cloud.

With a remote backend, everyone on the team and every CI run reads and writes the same state, with locking preventing collisions.

A common stumble is starting with local state and migrating later, which requires care — Terraform offers to copy the state during init, and that step must not be skipped.

In real work, a remote backend with locking and versioning is effectively mandatory for anything a team shares.

Terraform
Try it (type this into the pseudo terminal)
terraform init

🧑‍💻 You can type this command into the Terraform pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)