I am trying to flatten a tuple to a string as follows
network_acls {
default_action = "Deny"
bypass = "AzureServices"
virtual_network_subnet_ids = ["${data.azurerm_subnet.blah_snet.id}", "${join("\",\"", azurerm_subnet.subnets.*.id)}"]
}
This is very similar to How to flatten a tuple of server ids to a string?, however it's not working for me.
The result is: "*subnetid1*\",\"*subnetid2*" - where \",\" should be properly escaped and result as ","
I can't figure out why this isn't working. I've tried many variations of escaping this to no benefit