Hi, removing the dollar($) causes the error below.
and also
Call to function "templatefile" failed: ./userdata_worker.sh:15,27-46: Invalid
template interpolation value; Cannot include the given value in a string
template: string required..
Can templatefile receive only string variable?
I believe the problem is that declaring HCL file inside userdata.sh
script disables me to use the non-string variables in HCL file.