terraform output from for_loop module

Viewed 16

I am creating 2 TGs, 2 ECS services in a module by calling submodules in a module. I am creating 10 modules of above using a for loop. How can I retrieve output values from each iteration of for loop. I created output variable(which is throwing following error) in one the submodule and trying to create a new output variable which merges all those vars to pass on to another module.

{
│     var.tg is object with no attributes
}

Does terraform allow to retrieve output values from submodules in for_loop

0 Answers
Related