1. Docs
  2. Pulumi ESC
  3. Environment Definition Reference
  4. Built-in Functions
  5. fn::fromBase64

fn::fromBase64

    The fn::fromBase64 built-in function decodes its input into a binary value. This can be used to realize binary values that are stored as Base64-encoded (often for use with the files well-known property. If the input to fn::fromBase64 is a secret, the decoded value is also a secret.

    Declaration

    fn::fromBase64: value-to-decode
    

    Parameters

    PropertyTypeDescription
    value-to-decodestringThe base64-encoded value.

    Returns

    The decoded data.

    Example

    Definition

    values:
      binary-data:
        fn::fromBase64: aGVsbG8sIHdvcmxkIQo=
    

    Evaluated result

    {
      "binary-data": "hello, world!"
    }
    
      PulumiUP May 6, 2025. Register Now.