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
Property | Type | Description |
---|---|---|
name | `string | binary` |
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!
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.