https://pulumi.com logo
#general
Title
# general
w

worried-engineer-33884

07/31/2019, 4:21 PM
It seems that
config.require
doesn't work so well in a dynamic provider async
create
function.
This was caused by trying to access the config in create
w

white-balloon-205

07/31/2019, 4:23 PM
I'm not sure exactly why you see that error - but in general it likely makes sense to get the values of these configuration settings outside of the
create
callback, and then capture the value of the config setting. See the note at the end of https://www.pulumi.com/docs/reference/programming-model/#dynamicproviders for details on the unusual execution model for Dynamic Providers that leads to this kind of requirement.
w

worried-engineer-33884

07/31/2019, 4:25 PM
ok got it — i've read that note but tbh i've had trouble fully understanding it capturing the config value outside of the callback does work. Thanks Luke!