Files
terragrunt-enc/config/root.hcl
T
Ben Vincent 8686753885
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
Fix backend path generation: evaluate path_relative_to_include at generate time
2026-07-24 23:25:32 +10:00

16 lines
377 B
HCL

generate "backend" {
path = "backend.tf"
if_exists = "overwrite_terragrunt"
contents = <<EOF
terraform {
backend "consul" {
address = "https://consul.service.consul"
path = "infra/terraform/enc/${replace(path_relative_to_include(), "/", "_")}/state"
scheme = "https"
lock = true
ca_file = "/etc/pki/tls/certs/ca-bundle.crt"
}
}
EOF
}