How to replace a substring from a string in terraform?

You can use terraform replace() function to replace a substring from a string in terraform. replace() searches a given string for another given substring, and replaces each occurrence with a given replacement string.

Syntax: replace(string, substring, replacement)

Open terraform console

Replace a substring from a string in terraform

Leave a Reply