Quick easy one using multiple variables to form a name

Just a quick, hopefully, easier question to answer?

Before 0.12 I could write
name = "{${var.storageaccountname}${var.env}}"
and it would give me the name as two variables e.g. storageaccrussproduction

How do I do this in 0.12 I’ve tried

name = var.storageaccountnamevar.env

and a few other arrangements but can’t get it right.


You still do interpolation as before

name = "${var.storageaccountname}${var.env}"

1 Like