How to get all the keys and values from a map in terraform?

You can use terraform functions keys() and values() to get all the keys and values from a map in the form of a list.

Syntax: keys(map), values(map)

Example:

Leave a Reply