In one of my modules I define an input variable with a type of `object’. One of the attributes needs to have a “:” in it. So the object would like something like:
variable "appSettings" {
type = object({
config1 = string
config2 = string
serviceConfig:apiUrl = string
})
}
I can understand why that’s not directly possible but is there some way of escaping the colon? In Azure App Services nested configuration must use “:” to denote hierarchy. For example, serviceConfig:apiUrl would be equivalent to a configuration file like:
{
config1: true,
config2: false,
serviceConfig {
apiUrl: "somedomain.com"
}
}
So I definitely need this, is there a way around this limitation?