github.com/eliastor/durgaform@v0.0.0-20220816172711-d0ab2d17673e/website/docs/language/settings/backends/etcd.mdx (about) 1 --- 2 page_title: 'Backend Type: etcd' 3 description: Terraform can store state remotely in etcd 2.x. 4 --- 5 6 # etcd (deprecated) 7 8 -> **Note:** The `etcd` backend is deprecated and will be removed in a future Terraform release. 9 10 Stores the state in [etcd 2.x](https://coreos.com/etcd/docs/latest/v2/README.html) at a given path. 11 12 This backend does **not** support [state locking](/language/state/locking). 13 14 ## Example Configuration 15 16 ```hcl 17 terraform { 18 backend "etcd" { 19 path = "path/to/terraform.tfstate" 20 endpoints = "http://one:4001 http://two:4001" 21 } 22 } 23 ``` 24 25 ## Data Source Configuration 26 27 ```hcl 28 data "terraform_remote_state" "foo" { 29 backend = "etcd" 30 config = { 31 path = "path/to/terraform.tfstate" 32 endpoints = "http://one:4001 http://two:4001" 33 } 34 } 35 ``` 36 37 ## Configuration Variables 38 39 !> **Warning:** We recommend using environment variables to supply credentials and other sensitive data. If you use `-backend-config` or hardcode these values directly in your configuration, Terraform will include these values in both the `.terraform` subdirectory and in plan files. Refer to [Credentials and Sensitive Data](/language/settings/backends/configuration#credentials-and-sensitive-data) for details. 40 41 The following configuration options are supported: 42 43 - `path` - (Required) The path where to store the state 44 - `endpoints` - (Required) A space-separated list of the etcd endpoints 45 - `username` - (Optional) The username 46 - `password` - (Optional) The password