How to test/view values as they are rendered thorugh for_each

I want to create a data structure that I can feed into a resource using for_each, and this resource may have nested blocks. But I am not sure how to do this, any advice? Do use null_resource? terraform console?

have you considered print it out as output ?

This is very obvious, but this didn’t work.