i’m using this registry module that declare a resource that use for_each:
and referencing the output that terraform provides as
subnet_id = module.vnet1.vnet_subnets[“subnet1”]
but i’m getting the following error, (but the output is in registry and i’ve referenced it right)
│ Error: Unsupported attribute
│
│ on vms.tf line 306, in resource “azurerm_network_interface” “nic3”:
│ 306: subnet_id = module.vnet1.vnet_subnets[“subnet1”]
│ ├────────────────
│ │ module.vnet1 is object with 7 attributes
│
│ This object does not have an attribute named “vnet_subnets”.
i will be so glad if anyone can give me a possible answer for this issue