|
|
|
|
@ -8,17 +8,17 @@ description: |-
|
|
|
|
|
|
|
|
|
|
# State
|
|
|
|
|
|
|
|
|
|
Terraform stores the state of your managed infrastructure from the last time
|
|
|
|
|
Terraform was run. By default this state is stored in a local file named
|
|
|
|
|
`terraform.tfstate`, but it can also be stored remotely, which works better in a
|
|
|
|
|
team environment.
|
|
|
|
|
|
|
|
|
|
Terraform Enterprise is a remote state provider, allowing you to store, version
|
|
|
|
|
and collaborate on states.
|
|
|
|
|
Terraform Enterprise stores the state of your managed infrastructure from the
|
|
|
|
|
last time Terraform was run. The state is stored remotely, which works better in a
|
|
|
|
|
team environment, allowing you to store, version and collaborate on state.
|
|
|
|
|
|
|
|
|
|
Remote state gives you more than just easier version control and safer storage.
|
|
|
|
|
It also allows you to delegate the outputs to other teams. This allows your
|
|
|
|
|
infrastructure to be more easily broken down into components that multiple teams
|
|
|
|
|
can access.
|
|
|
|
|
|
|
|
|
|
Read [more about remote state](https://www.terraform.io/docs/state/remote.html).
|
|
|
|
|
Remote state is automatically updated when you run [`apply`](/docs/commands/apply.html)
|
|
|
|
|
locally. It is also updated when an `apply` is executed in a [Terraform Enterprise
|
|
|
|
|
Run](/docs/enterprise/runs/index.html).
|
|
|
|
|
|
|
|
|
|
Read [more about remote state](/docs/state/remote.html).
|
|
|
|
|
|