Skip to content

fn::toBase64 ​

The fn::toBase64 built-in function encodes a string using standard Base64 encoding. If the input to fn::toBase64 is a secret, the encoded value is also a secret.

Declaration ​

yaml
fn::toBase64: value-to-encode

Parameters ​

PropertyTypeDescription
value-to-encodestringThe string to encode.

Returns ​

The Base64-encoded string.

Content from the official Pulumi documentation (github.com/pulumi/docs).