1. Docs
  2. Pulumi ESC
  3. Environment Definition Reference
  4. Reserved Properties
  5. files

files

    The files reserved property contains values that should be written to temporary files. For example, esc run writes the contents of each property in the files property to a temporary file and exports the file’s path in the named environment variable that is accessible to the command to run.

    Properties

    PropertyTypeDescription
    name`stringbinary`

    Example

    values:
      files:
        GREETING: Hello, ${context.pulumi.user.login}!
        BINARY:
         fn::fromBase64: ...
    

    Evaluated result

    {
      "files": {
        "GREETING": "Hello, user!",
        "BINARY": ...
      }
    }
    

    Using esc run

    $ esc run default/greet -- sh -c 'echo ${GREETING} & cat ${GREETING}'
    /tmp/tmp.iBApHfcsJ1
    Hello, user!
    
      PulumiUP May 6, 2025. Register Now.