Resolved: Module vpn s2s terraform – is tuple with 2 element

In this post, we will see how to resolve Module vpn s2s terraform – is tuple with 2 element

Question:

I have in main.tf
And in module main.tf
But i get
I try toset, flatter
but i still don’t know how to solve this problem.
Any ideas?

Best Answer:

You have nested list in a map. You need to flatten your variable to iterate over it:
then

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com