How to encode and decode a string in base64 in terraform?

You can use terraform functions base64encode() and base64decode() to encode and decode a string in base64. base64encode() applies Base64 encoding to a string and base64decode() takes a string containing a Base64 character sequence and returns the original string.

Syntax: base64encode(utf8_string) base64decode(base64_string)

Example:

Leave a Reply