Reference variable in quoted value/string

Inside the proxmox_vm_qemu resource, I have the following directive through which I set the ip of the vm:

ipconfig0 = "ip=,gw="

I would like to use a variable instead of the hardcoded ip, so for example something like:

ipconfig0 = "ip=var.ip/24,gw="

If course, if I do that, I expect it to interpret var.ip literally. Is there anyway I can force terraform to interpret it as a variable name?


Ok, never mind, it works just like in the template: ${var.ip}