We often find ourselves copy and pasting type blocks in terraform templates. This makes it more difficult to maintain.
Please consider adding custom types as a language construct or extension. It would allow someone to specify and name a type/object definition and reuse it in code.
Bicep has a similar feature described here: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/user-defined-data-types
We often find ourselves copy and pasting type blocks in terraform templates. This makes it more difficult to maintain.
Please consider adding custom types as a language construct or extension. It would allow someone to specify and name a type/object definition and reuse it in code.
Bicep has a similar feature described here: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/user-defined-data-types