Skip to content

fn::open ​

The fn::open built-in function invokes a provider to fetch values from outside of ESC.

Declaration ​

yaml
fn::open:
  provider: name
  inputs: inputs

Short form ​

In addition to the long form syntax, fn::open can be invoked using the short form fn::open::name with the inputs provided directly:

yaml
fn::open::name: inputs

Parameters ​

PropertyTypeDescription
providerstringThe name of the provider to open. In the short form, the name is part of the function key (fn::open::name) and this key is omitted.
inputsanyThe inputs to the provider. The exact type is provider-dependent.

Returns ​

The return value of fn::open is dependent on the provider being opened.

Content from the official Pulumi documentation (github.com/pulumi/docs).