How to convert CSV data into a map in terraform?

You can use terraform csvdecode() function to convert CSV data into a map. csvdecode() decodes a string containing CSV-formatted data and produces a list of maps representing that data.

Syntax: csvdecode(csv_string)

Example:

Leave a Reply