Resolves the target ESC environment from the ambient PULUMI_* env vars and loads (or reuses) its configuration values.
ReadonlyorganizationReadonlyprojectReadonlystageGet a config value as a string, or undefined when missing.
Get a config value as a boolean (the string "true" is truthy), or undefined when missing.
Get a config value as a number, or undefined when missing or not numeric.
Get a config value as a structured object, parsing JSON strings when needed.
The expected shape of the value.
The value typed as T, or undefined when missing or unparsable.
Get a required config value as a structured object.
The expected shape of the value.
Typed access to Pulumi ESC configuration and secrets within SST applications.
Unlike the original CloudConfig, this version directly queries Pulumi Environments using the CLI, ensuring access to the most up-to-date configuration values, and caches them per environment to minimize CLI execution overhead.
Example