Hi everyone! Currently building out some dynamic...
# general
t
Hi everyone! Currently building out some dynamic providers that will “depend on each other” Could someone point me in the right direction with regards to exporting the resource ID? How do I access the resource ID outside the provider class?
b
I think @bright-orange-69401 would be able to help here as his team has done a LOT of work with dynamic providers :)
b
Hey, thanks for the shoutout 🙂 Well we're mostly experienced with Python-based Dynamic Providers, but as far as I can tell you can pretty much export anything : it's mostly a matter of how you structured your class(es) There isn't necessarily a notion of "ID", as in some cases your "ID" will be a "name" or another attribute, but you can simply export anything from a
pulumi.dynamic.Resource
as long as it's a class attribute
You can have a look at this example to see how we structured a project around Dynamic Providers: https://github.com/nuage-studio/pulumi-snowflake/tree/master/pulumi_snowflake/database