16 lines
377 B
HCL
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
|
|
}
|