How to split a string in a specific position in terraform?

You can use terraform substr() function to split a string into multiple substrings in a specific position. substr() extracts a substring from a given string by offset and length.

Syntax: substr(string, offset, length)

Open terraform console

Split a string in a specific position in terraform

Leave a Reply