diff --git a/config/root.hcl b/config/root.hcl index 1712361..59d8177 100644 --- a/config/root.hcl +++ b/config/root.hcl @@ -5,7 +5,7 @@ generate "backend" { terraform { backend "consul" { address = "https://consul.service.consul" - path = "infra/terraform/enc/$${path_relative_to_include()}/state" + path = "infra/terraform/enc/${replace(path_relative_to_include(), "/", "_")}/state" scheme = "https" lock = true ca_file = "/etc/pki/tls/certs/ca-bundle.crt"