Hi @tung,
below a link to one of the last terraform issue about loop on providers to make DRY code across providers (greatly reduncing code redundancy and human errors). Terraform (in its actual code architecture) will hardly solve this problem.
Multiple Providers with a loop
We speak about an issue opened more then 4 yars ago. Probably Terraspace can provide a better solution then competitors e.g. surrounding a single code block and making a copy with loop on multiple provider aliases.
Seeing the amount of people to whom this feature would be useful it would constitute for terraspace an excellent opportunity for growth.
What do you think about this?