Hi Folks,
I’m trying to figure out how to declare a map of map.
i,e map[string]map[string]string{}
I see the error TypeMap with Elem *Resource not supported. I tried a different combination. If I remove Resouce and just put as Elem: map[string]*schema.Schema on each section that also doesn’t work.
"key1": {
Type: schema.TypeMap,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"key2": {
Type: schema.TypeMap,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"type": {
Type: schema.TypeString,
Computed: true,
},
"policy": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
},
},
},```