variable "nlog_filelog_target_layout" { type = "string" default = "${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=ToString,StackTrace}${newline}"}variable "nlog_filelog_target_layout" {type = "string"default = "${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=ToString,StackTrace}${newline}"}
Yields:output "got" {value = "${var.nlog_filelog_target_layout}"}
Outputs:got = ${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=ToString,StackTrace}${newline}
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/47dde847-7eb4-42b0-b046-ffe4ae59a61a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
variable "nlog_console_target_layout" { type = "string" default = "${date:format=MM/dd HH\\:mm\\:ss} ${logger}|${message}"}
variable "nlog_filelog_target_layout" { type = "string" default = "${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=ToString,StackTrace}${newline}"}variable "nlog_filelog_target_fileName" { type = "string" default = "DiscoWorker.${level}.log"}
$ terraform validate
Error validating: 1 error(s) occurred:
* Variable 'nlog_filelog_target_fileName': cannot contain interpolations
variable "nlog_console_target_layout" { type = "string" default = "${date:format=MM/dd HH\\:mm\\:ss} ${logger}|${message}"}
At 65:40: illegal char escape
$ terraform plan -var-file=vars.tfvars consul_nlog_config-v0.0.7
invalid value "vars.tfvars" for flag -var-file: Error parsing vars.tfvars: At 14:58: illegal char escape
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/79057122-5583-4525-b28d-15cdddc7ee31%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/1b26331f-ace5-4510-ad7a-0774f1894da8%40googlegroups.com.