0
0
llucycodes42
The code defines a data block with the name "terraform_remote_state" and assigns it to the variable "${myBackend}" . The contents of the block are specific to the backend "etcd" . The block configures the path to the terraform.tfstate file and the two endpoints to which the terraform.tfstate file should be accessible.
Shortcut: tf_etcd_backend
data "terraform_remote_state" "${myBackend}" {
backend = "etcd"
config {
path = "path/to/terraform.tfstate"
endpoints = "http://one:4001 http://two:4001"
}
}