I have this kind of userdata.sh (plz see below) that is used to spin up an EC2 instance. However hcl file is unable to interpret shell script variable.
userdata.sh
I