github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/website/docs/configuration/functions/filebase64sha256.html.md (about)

     1  ---
     2  layout: "functions"
     3  page_title: "filebase64sha256 - Functions - Configuration Language"
     4  sidebar_current: "docs-funcs-crypto-filebase64sha256"
     5  description: |-
     6    The filebase64sha256 function computes the SHA256 hash of the contents of
     7    a given file and encodes it with Base64.
     8  ---
     9  
    10  # `filebase64sha256` Function
    11  
    12  -> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
    13  earlier, see
    14  [0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
    15  
    16  `filebase64sha256` is a variant of [`base64sha256`](./base64sha256.html)
    17  that hashes the contents of a given file rather than a literal string.
    18  
    19  This is similar to `base64sha256(file(filename))`, but
    20  because [`file`](./file.html) accepts only UTF-8 text it cannot be used to
    21  create hashes for binary files.