Reputation: 91
I'm new to terraform and trying to add a variable to a string, Suppose, id = "abcde", host =~ ${id} + "id", should return abcdeid what's the best way to achieve this in terraform?
Upvotes: 1
Views: 12244
Reputation: 890
Assuming a var called name and a suffix of -123
Host = “${var.name}-123”
Upvotes: 5