https://pulumi.com logo
#dotnet
Title
# dotnet
g

green-waiter-1566

02/14/2024, 3:45 AM
Is there an equivalent of WorkspaceStack.GetAllConfigAsync that can be called from within a deployment without using automation api? I’d like to write a custom configuration provider backed by the pulumi configuration api or similar: https://learn.microsoft.com/en-us/dotnet/core/extensions/custom-configuration-provider
I think this is possible today using inline stacks and automation api, but I’d like to implement without those restrictions
e

echoing-dinner-19531

02/14/2024, 11:13 PM
Afraid nothings exposes this information currently. If your happy breaking protection modifiers with reflection you can look at the
Deployment.AllConfig
field. It's an
ImmutableDictionary<string, string>
with all the loaded config, filled in for both inline programs and standard ones.