github.com/loicalbertin/terraform@v0.6.15-0.20170626182346-8e2583055467/website/docs/backends/types/local.html.md (about)

     1  ---
     2  layout: "backend-types"
     3  page_title: "Backend Type: local"
     4  sidebar_current: "docs-backends-types-enhanced-local"
     5  description: |-
     6    Terraform can store the state remotely, making it easier to version and work with in a team.
     7  ---
     8  
     9  # local
    10  
    11  **Kind: Enhanced**
    12  
    13  The local backend stores state on the local filesystem, locks that
    14  state using system APIs, and performs operations locally.
    15  
    16  ## Example Configuration
    17  
    18  ```hcl
    19  terraform {
    20    backend "local" {
    21      path = "relative/path/to/terraform.tfstate"
    22    }
    23  }
    24  ```
    25  
    26  ## Example Reference
    27  
    28  ```hcl
    29  data "terraform_remote_state" "foo" {
    30    backend = "local"
    31  
    32    config {
    33      path = "${path.module}/../../terraform.tfstate"
    34    }
    35  }
    36  ```
    37  
    38  ## Configuration variables
    39  
    40  The following configuration options are supported:
    41  
    42   * `path` - (Optional) The path to the `tfstate` file. This defaults to
    43     "terraform.tfstate" relative to the root module by default.