ESC provides a number of built-in functions to help perform common value manipulations and to help access information stored outside of ESC.
All function invocations take the form of an object with a single key that names the function to invoke. The value of the key is the argument passed to the function. It is an error to attempt to invoke an unknown function, or for an object literal with multiple entries to contain a key with the prefix fn::
.
Functions
Examples
Valid function invocation
valid:
fn::join: [ " ", [ "hello", "world" ] ]
Too many keys
tooManyKeys:
fn::join: [ " ", [ "hello", "world" ] ]
fn::toString: { "hello": "world" }
Unknown function
unknownFunction:
fn::undefined: {}
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.