You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.
Looks like there are unsupported functions in template file.
Documentation says "The template may also use any other function available in the Terraform language, except that recursive calls to templatefile are not permitted" but i found out that neither 'regex' nor 'regexall' are in fact supported:
Hello!
Looks like there are unsupported functions in template file.
Documentation says "The template may also use any other function available in the Terraform language, except that recursive calls to templatefile are not permitted" but i found out that neither 'regex' nor 'regexall' are in fact supported:
Terraform Version
me@my-mac ~/Code/consul-vault/app/staging $ terraform -v
Terraform v0.12.24
Affected Resource(s)
Terraform Configuration Files
Template file
Panic Output
Error: failed to render : <template_file>:2,7-12: Call to unknown function; There is no function named "regex".
on ../../modules/provision.tf line 1, in data "template_file" "consul_config":
1: data "template_file" "consul_config" {
Similar error is produced if i try to use %{ if length(regexall(".+consul.+", node_name)) > 0 } in template:
Error: failed to render : <template_file>:2,14-22: Call to unknown function; There is no function named "regexall".
on ../../modules/provision.tf line 1, in data "template_file" "consul_config":
1: data "template_file" "consul_config" {
Expected Behavior
As documentation implies all terraform functions should be supported in template file except recursive calls to templatefile
Actual Behavior
Template fails to render
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: