1. Docs
  2. Pulumi ESC
  3. Environment Definition Reference
  4. Built-in Functions

Built-in Functions

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" ] ]
Copy

Too many keys

tooManyKeys:
  fn::join: [ " ", [ "hello", "world" ] ]
  fn::toString: { "hello": "world" }
Copy

Unknown function

unknownFunction:
  fn::undefined: {}
Copy

Was this page helpful?

PulumiUP May 6, 2025. Register Now.