github.com/hugorut/terraform@v1.1.3/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 7 8 Stores the state in [etcd 2.x](https://coreos.com/etcd/docs/latest/v2/README.html) at a given path. 9 10 This backend does **not** support [state locking](/language/state/locking). 11 12 ## Example Configuration 13 14 ```hcl 15 terraform { 16 backend "etcd" { 17 path = "path/to/terraform.tfstate" 18 endpoints = "http://one:4001 http://two:4001" 19 } 20 } 21 ``` 22 23 ## Data Source Configuration 24 25 ```hcl 26 data "terraform_remote_state" "foo" { 27 backend = "etcd" 28 config = { 29 path = "path/to/terraform.tfstate" 30 endpoints = "http://one:4001 http://two:4001" 31 } 32 } 33 ``` 34 35 ## Configuration variables 36 37 The following configuration options are supported: 38 39 - `path` - (Required) The path where to store the state 40 - `endpoints` - (Required) A space-separated list of the etcd endpoints 41 - `username` - (Optional) The username 42 - `password` - (Optional) The password