Terraform does not accept variables of type object

Hello team,

When trying to inform a value for a Terraform variable of type Object in the Provisioning of the App or Catalog Item, this presents an error.

The displayed error suggests that Morpheus tries to convert the object to a string by placing the informed content between double quotes (“”).

Hello Angelica,

Good news! Your timing is impeccable. We just did a very large overhaul of the hcl4j open source library we use and maintain to parse this information. object() types were added for 5.4.14 and 6.0.0 (coming january) along with a LOT more. Object is also simply an alias for the map() type which may work well enough for you for now if you want to try changing the word object() to map() in your tf.

Thanks,
David

2 Likes