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

tall-stone-8237

03/11/2020, 6:24 AM
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

broad-dog-22463

03/11/2020, 11:57 AM
I think @bright-orange-69401 would be able to help here as his team has done a LOT of work with dynamic providers :)
b

bright-orange-69401

03/11/2020, 2:31 PM
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