-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
I have this variables.tf which contains a list as objects
variable "configure_teams" {
type = list(object({
name = string
description = string
privacy = optional(string, "closed")
parent_team = optional(string)
members = optional(list(string))
}))
default = []
}
When using hcl2json command, it outputs:
{
"variable": {
"configure_teams": {
"default": null,
"type": "list(object({\r\n name = string\r\n description = string\r\n privacy = optional(string, \"closed\")\r\n parent_team = optional(string)\r\n members = optional(list(string))\r\n }))"
}
}
}
which is not desirable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels