How to remove whitespace from a string in terraform?

You can use terraform trimspace() function to remove all whitespace from a string. trimspace() removes any space characters from the start and end of the given string.

Syntax: trimspace(“string_with_space”)

Open terraform console

Remove whitespace from a string in terraform

Leave a Reply