1. Docs
  2. Pulumi ESC
  3. Environment Definition Reference
  4. Built-in Functions
  5. fn::open

fn::open

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

    Declaration

    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:

    fn::open::name: inputs
    

    Parameters

    PropertyTypeDescription
    namestringThe name of the provider to open.
    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.

    Example

    Long form

    values:
      aws:
        login:
          fn::open:
            provider: aws-login
            inputs:
              oidc:
                ...
    

    Short form

    values:
      aws:
        login:
          fn::open::aws-login:
            oidc:
              ...
    

    Evaluated result

    {
      "aws": {
        "login": {
          "AWS_ACCESS_KEY_ID": ...,
          "AWS_SECRET_ACCESS_KEY": ...,
          "AWS_SESSION_TOKEN": ...
        }
      }
    }
    
      PulumiUP May 6, 2025. Register Now.