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
Error: Error in function call
on main.tf.json line 59, in resource.local_file.user_data_a_json:
59: "content": "${templatefile(.....
Call to function "templatefile" failed:
metadata_template.json:14,20-44: Extra
characters after interpolation expression; Expected a closing brace to end the
interpolation expression, but found extra characters..
Error, however if I rename "0_VALUE_FROM_NODE_NAMES" to "FIRST_VALUE_FROM_NODE_NAMES" or "THE_0TH_VALUE_FROM_NODE_NAMES", this works fine, so clearly having numbers at beginning of strings in keys (in a map) is not allowed.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 1, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
0.12.18
Terraform Configuration Files
With template "metadata_template.json":
and terraform config:
I get a
Error, however if I rename "0_VALUE_FROM_NODE_NAMES" to "FIRST_VALUE_FROM_NODE_NAMES" or "THE_0TH_VALUE_FROM_NODE_NAMES", this works fine, so clearly having numbers at beginning of strings in keys (in a map) is not allowed.
I'm okay with this not being fixed, it's a perfectly acceptable restriction, with a trivial workaround, so long as it is documented in https://www.terraform.io/docs/configuration/functions/templatefile.html or similar. I found no documentation warning on this.
This is very low priority.
Additional Context
I'm using JSON instead of HCL as this is a machine generated file
The text was updated successfully, but these errors were encountered: