How to split a list into multiple lists in terraform?

You can use terraform chunklist() function to split a list into multiple lists. chunklist() splits a single list into fixed-size chunks, returning a list of lists.

Syntax: chunklist(list, chunk_size)

Example:

Leave a Reply