Terraform referencing output from another module with for_each
问题 I am having trouble referencing an output from a module in another module. The resources in the first module was deployed using for_each. The resources in the second module is trying to reference the resources from first module There are 2 modules created Security Group VM The intention is to assign the Security Group to the VM The following is the module for the Security Group variable "configserver" { type = map(object({ name = string location = string subnet = string availability_zone =