1005 B
1005 B
layout | page_title | sidebar_current | description |
---|---|---|---|
backend-types | Backend Type: etcd | docs-backends-types-standard-etcdv2 | Terraform can store state remotely in etcd 2.x. |
etcd
Kind: Standard (with no locking)
Stores the state in etcd 2.x at a given path.
Example Configuration
terraform {
backend "etcd" {
path = "path/to/terraform.tfstate"
endpoints = "http://one:4001 http://two:4001"
}
}
Data Source Configuration
data "terraform_remote_state" "foo" {
backend = "etcd"
config = {
path = "path/to/terraform.tfstate"
endpoints = "http://one:4001 http://two:4001"
}
}
Configuration variables
The following configuration options are supported:
path
- (Required) The path where to store the stateendpoints
- (Required) A space-separated list of the etcd endpointsusername
- (Optional) The usernamepassword
- (Optional) The password