Skip to content

fn::fromBase64 ​

The fn::fromBase64 built-in function decodes a standard Base64-encoded string and returns the decoded data as a string. This can be used to realize values that are stored as Base64-encoded (often for use with the files reserved property). If the input to fn::fromBase64 is a secret, the decoded value is also a secret.

Declaration ​

yaml
fn::fromBase64: value-to-decode

Parameters ​

PropertyTypeDescription
value-to-decodestringThe base64-encoded value.

Returns ​

The decoded string. If the input is not valid Base64, evaluation fails with a decoding base64 string error.

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